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

fix: support for clang3.3

This commit is contained in:
bolero-MURAKAMI 2013-06-17 23:44:18 +09:00
parent c8d3fbe597
commit 4182fb3fea
5 changed files with 16 additions and 8 deletions

View file

@ -28,8 +28,8 @@ namespace sprout {
: v_(v)
{}
template<typename T>
SPROUT_CONSTEXPR auto operator()(T&& t)
-> decltype(std::declval<holder_type const>().get()(sprout::forward<T>(t))) const
SPROUT_CONSTEXPR auto operator()(T&& t) const
-> decltype(std::declval<holder_type const>().get()(sprout::forward<T>(t)))
{
return v_.get()(sprout::forward<T>(t));
}

View file

@ -54,8 +54,8 @@ namespace sprout {
: v_(v)
{}
template<typename T>
SPROUT_CONSTEXPR auto operator()(T&& t)
-> decltype(std::declval<holder_type const>().get()(sprout::forward<T>(t))) const
SPROUT_CONSTEXPR auto operator()(T&& t) const
-> decltype(std::declval<holder_type const>().get()(sprout::forward<T>(t)))
{
return v_.get()(sprout::forward<T>(t));
}