mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
add C++14 version result_of / fix is_destructible
This commit is contained in:
parent
1507d435f9
commit
d79df43c55
6 changed files with 217 additions and 17 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <functional>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/utility/forward.hpp>
|
||||
#include <sprout/type_traits/integral_constant.hpp>
|
||||
#include <sprout/type_traits/std_type_traits.hpp>
|
||||
#include <sprout/type_traits/identity.hpp>
|
||||
#include <sprout/type_traits/has_xxx.hpp>
|
||||
#include <sprout/type_traits/inherit_if_xxx.hpp>
|
||||
|
@ -173,7 +173,7 @@ namespace sprout {
|
|||
}
|
||||
// invocation
|
||||
template<typename... Args>
|
||||
SPROUT_CONSTEXPR typename std::result_of<T& (Args&&...)>::type
|
||||
SPROUT_CONSTEXPR typename sprout::result_of<T& (Args&&...)>::type
|
||||
operator()(Args&&... args) const {
|
||||
return (*t_)(SPROUT_FORWARD(Args, args)...);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue