1 /////////////////////////////////////////////////////////////////////////////// 2 /// \file as_lvalue.hpp 3 /// Contains definition the as_lvalue() functions. 4 // 5 // Copyright 2008 Eric Niebler. Distributed under the Boost 6 // Software License, Version 1.0. (See accompanying file 7 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 8 9 #ifndef BOOST_PROTO_TRANSFORM_AS_LVALUE_HPP_EAN_12_27_2007 10 #define BOOST_PROTO_TRANSFORM_AS_LVALUE_HPP_EAN_12_27_2007 11 12 #include <boost/proto/proto_fwd.hpp> 13 14 namespace boost { namespace proto 15 { 16 namespace detail 17 { 18 template<typename T> as_lvalue(T & t)19 T &as_lvalue(T &t) 20 { 21 return t; 22 } 23 24 template<typename T> as_lvalue(T const & t)25 T const &as_lvalue(T const &t) 26 { 27 return t; 28 } 29 } 30 }} 31 32 #endif 33