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:
parent
c8d3fbe597
commit
4182fb3fea
5 changed files with 16 additions and 8 deletions
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue