Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:26

0001 ///////////////////////////////////////////////////////////////////////////////
0002 /// \file as_lvalue.hpp
0003 /// Contains definition the as_lvalue() functions.
0004 //
0005 //  Copyright 2008 Eric Niebler. Distributed under the Boost
0006 //  Software License, Version 1.0. (See accompanying file
0007 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 #ifndef BOOST_PROTO_TRANSFORM_AS_LVALUE_HPP_EAN_12_27_2007
0010 #define BOOST_PROTO_TRANSFORM_AS_LVALUE_HPP_EAN_12_27_2007
0011 
0012 #include <boost/proto/proto_fwd.hpp>
0013 
0014 #if defined(_MSC_VER)
0015 # pragma warning(push)
0016 # pragma warning(disable : 4714) // function 'xxx' marked as __forceinline not inlined
0017 #endif
0018 
0019 namespace boost { namespace proto
0020 {
0021     namespace detail
0022     {
0023         template<typename T>
0024         BOOST_FORCEINLINE
0025         T &as_lvalue(T &t)
0026         {
0027             return t;
0028         }
0029 
0030         template<typename T>
0031         BOOST_FORCEINLINE
0032         T const &as_lvalue(T const &t)
0033         {
0034             return t;
0035         }
0036     }
0037 }}
0038 
0039 #if defined(_MSC_VER)
0040 # pragma warning(pop)
0041 #endif
0042 
0043 #endif