Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/local_function/aux_/nobind.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 |
Chris@16 | 2 // Copyright (C) 2009-2012 Lorenzo Caminiti |
Chris@16 | 3 // Distributed under the Boost Software License, Version 1.0 |
Chris@16 | 4 // (see accompanying file LICENSE_1_0.txt or a copy at |
Chris@16 | 5 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 6 // Home at http://www.boost.org/libs/local_function |
Chris@16 | 7 |
Chris@16 | 8 #ifndef BOOST_LOCAL_FUNCTION_AUX_NOBIND_HPP_ |
Chris@16 | 9 #define BOOST_LOCAL_FUNCTION_AUX_NOBIND_HPP_ |
Chris@16 | 10 |
Chris@16 | 11 #include <boost/local_function/config.hpp> |
Chris@16 | 12 |
Chris@16 | 13 // NOTE: The current implementation needs no-bind placeholders only when |
Chris@16 | 14 // local types cannot be passed as template parameters. |
Chris@16 | 15 #if !BOOST_LOCAL_FUNCTION_CONFIG_LOCALS_AS_TPARAMS |
Chris@16 | 16 |
Chris@16 | 17 namespace boost { namespace local_function { namespace aux { |
Chris@16 | 18 |
Chris@16 | 19 typedef int nobind_t; // Tag no-bind type. |
Chris@16 | 20 |
Chris@16 | 21 static nobind_t nobind; // Global variable so all no-binds can reference it. |
Chris@16 | 22 |
Chris@16 | 23 // NOTE: Used only to get rid of unused static variable `nobind` (this function |
Chris@16 | 24 // is never actually called so it does not need to be defined). |
Chris@16 | 25 void no_unused_nobind_warning_(nobind_t* ptr = &nobind); |
Chris@16 | 26 |
Chris@16 | 27 } } } // namespace |
Chris@16 | 28 |
Chris@16 | 29 #endif // locals as tparams |
Chris@16 | 30 |
Chris@16 | 31 #endif // #include guard |
Chris@16 | 32 |