as_lvalue.hpp 585 B

12345678910111213141516171819202122232425
  1. // Copyright Daniel Wallin 2006.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_PARAMETER_AUX_AS_LVALUE_HPP
  6. #define BOOST_PARAMETER_AUX_AS_LVALUE_HPP
  7. namespace boost { namespace parameter { namespace aux {
  8. template <typename T>
  9. T const& as_lvalue(T const& value)
  10. {
  11. return value;
  12. }
  13. template <typename T>
  14. T& as_lvalue(T& value)
  15. {
  16. return value;
  17. }
  18. }}} // namespace boost::parameter::aux
  19. #endif // include guard