Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:39:14

0001 
0002 // Copyright (C) 2009-2012 Lorenzo Caminiti
0003 // Distributed under the Boost Software License, Version 1.0
0004 // (see accompanying file LICENSE_1_0.txt or a copy at
0005 // http://www.boost.org/LICENSE_1_0.txt)
0006 // Home at http://www.boost.org/libs/local_function
0007 
0008 #ifndef BOOST_LOCAL_FUNCTION_AUX_NOBIND_HPP_
0009 #define BOOST_LOCAL_FUNCTION_AUX_NOBIND_HPP_
0010 
0011 #include <boost/local_function/config.hpp>
0012 
0013 // NOTE: The current implementation needs no-bind placeholders only when
0014 // local types cannot be passed as template parameters.
0015 #if !BOOST_LOCAL_FUNCTION_CONFIG_LOCALS_AS_TPARAMS
0016 
0017 namespace boost { namespace local_function { namespace aux {
0018 
0019 typedef int nobind_t; // Tag no-bind type.
0020 
0021 static nobind_t nobind; // Global variable so all no-binds can reference it.
0022 
0023 // NOTE: Used only to get rid of unused static variable `nobind` (this function
0024 // is never actually called so it does not need to be defined).
0025 void no_unused_nobind_warning_(nobind_t* ptr = &nobind);
0026 
0027 } } } // namespace
0028 
0029 #endif // locals as tparams
0030 
0031 #endif // #include guard
0032