mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
modify namespace result_of -> results
support C++14 type_traits
This commit is contained in:
parent
d386893a74
commit
bf0c7021cf
350 changed files with 2628 additions and 1912 deletions
|
@ -17,15 +17,15 @@ namespace sprout {
|
|||
//
|
||||
// get
|
||||
//
|
||||
template<typename U, typename... Types>
|
||||
inline SPROUT_CONSTEXPR U const&
|
||||
template<typename T, typename... Types>
|
||||
inline SPROUT_CONSTEXPR T const&
|
||||
get(sprout::variant<Types...> const& operand) {
|
||||
return operand.template get<U>();
|
||||
return operand.template get<T>();
|
||||
}
|
||||
template<typename U, typename... Types>
|
||||
inline SPROUT_CONSTEXPR U&
|
||||
template<typename T, typename... Types>
|
||||
inline SPROUT_CONSTEXPR T&
|
||||
get(sprout::variant<Types...>& operand) {
|
||||
return operand.template get<U>();
|
||||
return operand.template get<T>();
|
||||
}
|
||||
} // namespace sprout
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue