2012-03-23 14:06:06 +00:00
|
|
|
#ifndef SPROUT_BREED_DETAIL_AS_LVALUE_HPP
|
|
|
|
#define SPROUT_BREED_DETAIL_AS_LVALUE_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
#include <sprout/breed/breed_fwd.hpp>
|
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
namespace breed {
|
|
|
|
namespace detail {
|
|
|
|
template<typename T>
|
2012-04-04 13:23:41 +00:00
|
|
|
inline SPROUT_CONSTEXPR T& as_lvalue(T& t) {
|
2012-03-23 14:06:06 +00:00
|
|
|
return t;
|
|
|
|
}
|
|
|
|
template<typename T>
|
2012-04-04 13:23:41 +00:00
|
|
|
inline SPROUT_CONSTEXPR T const& as_lvalue(T const& t) {
|
2012-03-23 14:06:06 +00:00
|
|
|
return t;
|
|
|
|
}
|
|
|
|
} // namespace detail
|
|
|
|
} // namespace breed
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_BREED_DETAIL_AS_LVALUE_HPP
|