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

fix defaulted default constructor

This commit is contained in:
bolero-MURAKAMI 2014-01-14 00:18:06 +09:00
parent 5aacc92a14
commit 7640eca894
82 changed files with 139 additions and 120 deletions

View file

@ -21,7 +21,7 @@ namespace sprout {
protected:
Result (*ptr_)(Arg);
public:
pointer_to_unary_function() = default;
SPROUT_CONSTEXPR pointer_to_unary_function() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
explicit SPROUT_CONSTEXPR pointer_to_unary_function(Result (*x)(Arg))
: ptr_(x)
{}
@ -43,7 +43,7 @@ namespace sprout {
protected:
Result (*ptr_)(Arg1, Arg2);
public:
pointer_to_binary_function() = default;
SPROUT_CONSTEXPR pointer_to_binary_function() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
explicit SPROUT_CONSTEXPR pointer_to_binary_function(Result (*x)(Arg1, Arg2))
: ptr_(x)
{}