Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/proto/detail/as_lvalue.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 /////////////////////////////////////////////////////////////////////////////// |
Chris@16 | 2 /// \file as_lvalue.hpp |
Chris@16 | 3 /// Contains definition the as_lvalue() functions. |
Chris@16 | 4 // |
Chris@16 | 5 // Copyright 2008 Eric Niebler. Distributed under the Boost |
Chris@16 | 6 // Software License, Version 1.0. (See accompanying file |
Chris@16 | 7 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 8 |
Chris@16 | 9 #ifndef BOOST_PROTO_TRANSFORM_AS_LVALUE_HPP_EAN_12_27_2007 |
Chris@16 | 10 #define BOOST_PROTO_TRANSFORM_AS_LVALUE_HPP_EAN_12_27_2007 |
Chris@16 | 11 |
Chris@16 | 12 #include <boost/proto/proto_fwd.hpp> |
Chris@16 | 13 |
Chris@101 | 14 #if defined(_MSC_VER) |
Chris@16 | 15 # pragma warning(push) |
Chris@16 | 16 # pragma warning(disable : 4714) // function 'xxx' marked as __forceinline not inlined |
Chris@16 | 17 #endif |
Chris@16 | 18 |
Chris@16 | 19 namespace boost { namespace proto |
Chris@16 | 20 { |
Chris@16 | 21 namespace detail |
Chris@16 | 22 { |
Chris@16 | 23 template<typename T> |
Chris@16 | 24 BOOST_FORCEINLINE |
Chris@16 | 25 T &as_lvalue(T &t) |
Chris@16 | 26 { |
Chris@16 | 27 return t; |
Chris@16 | 28 } |
Chris@16 | 29 |
Chris@16 | 30 template<typename T> |
Chris@16 | 31 BOOST_FORCEINLINE |
Chris@16 | 32 T const &as_lvalue(T const &t) |
Chris@16 | 33 { |
Chris@16 | 34 return t; |
Chris@16 | 35 } |
Chris@16 | 36 } |
Chris@16 | 37 }} |
Chris@16 | 38 |
Chris@101 | 39 #if defined(_MSC_VER) |
Chris@16 | 40 # pragma warning(pop) |
Chris@16 | 41 #endif |
Chris@16 | 42 |
Chris@16 | 43 #endif |