1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix typo variant.hpp

This commit is contained in:
bolero-MURAKAMI 2012-03-23 23:06:06 +09:00
parent aa91f8ce29
commit 787c819b77
4 changed files with 236 additions and 5 deletions

View file

@ -0,0 +1,22 @@
#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>
SPROUT_CONSTEXPR T& as_lvalue(T& t) {
return t;
}
template<typename T>
SPROUT_CONSTEXPR T const& as_lvalue(T const& t) {
return t;
}
} // namespace detail
} // namespace breed
} // namespace sprout
#endif // #ifndef SPROUT_BREED_DETAIL_AS_LVALUE_HPP