fix constructor

This commit is contained in:
bolero-MURAKAMI 2013-12-03 00:40:34 +09:00
parent e6b504f94b
commit 4f5c2787d7

View file

@ -225,7 +225,6 @@ namespace sprout {
item& operator=(item const&) SPROUT_DELETED_FUNCTION_DECL item& operator=(item const&) SPROUT_DELETED_FUNCTION_DECL
item& operator=(item&&) SPROUT_DELETED_FUNCTION_DECL item& operator=(item&&) SPROUT_DELETED_FUNCTION_DECL
private: private:
item(item const&) = default;
SPROUT_CONSTEXPR item(typename holder_type::argument_type p, item_holder_type const& n) SPROUT_CONSTEXPR item(typename holder_type::argument_type p, item_holder_type const& n)
: val(p) : val(p)
, next(n) , next(n)
@ -259,6 +258,7 @@ namespace sprout {
SPROUT_CONSTEXPR item() SPROUT_NOEXCEPT SPROUT_CONSTEXPR item() SPROUT_NOEXCEPT
: val(), next() : val(), next()
{} {}
item(item const&) = default;
SPROUT_CONSTEXPR item(typename holder_type::argument_type p) SPROUT_CONSTEXPR item(typename holder_type::argument_type p)
: val(p), next() : val(p), next()
{} {}