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

@ -24,7 +24,7 @@ namespace sprout {
presult_type presult_;
Context ctx_;
public:
eval_result() = default;
SPROUT_CONSTEXPR eval_result() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
SPROUT_CONSTEXPR eval_result(
bool success,
Iterator current,

View file

@ -47,7 +47,7 @@ namespace sprout {
private:
T t_;
public:
lit_char_p() = default;
SPROUT_CONSTEXPR lit_char_p() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
explicit SPROUT_CONSTEXPR lit_char_p(T const& t)
: t_(t)
{}
@ -104,7 +104,7 @@ namespace sprout {
private:
T t_;
public:
char_p() = default;
SPROUT_CONSTEXPR char_p() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
explicit SPROUT_CONSTEXPR char_p(T const& t)
: t_(t)
{}
@ -145,7 +145,7 @@ namespace sprout {
T f_;
T l_;
public:
char_range_p() = default;
SPROUT_CONSTEXPR char_range_p() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
SPROUT_CONSTEXPR char_range_p(T const& f, T const& l)
: f_(f), l_(l)
{}
@ -185,7 +185,7 @@ namespace sprout {
private:
T t_;
public:
char_set_p() = default;
SPROUT_CONSTEXPR char_set_p() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
explicit SPROUT_CONSTEXPR char_set_p(T const& t)
: t_(t)
{}

View file

@ -62,7 +62,7 @@ namespace sprout {
;
}
public:
as_array_p() = default;
SPROUT_CONSTEXPR as_array_p() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
explicit SPROUT_CONSTEXPR as_array_p(
Parser const& p
)

View file

@ -62,7 +62,7 @@ namespace sprout {
;
}
public:
as_tuple_p() = default;
SPROUT_CONSTEXPR as_tuple_p() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
explicit SPROUT_CONSTEXPR as_tuple_p(
Parser const& p
)

View file

@ -56,7 +56,7 @@ namespace sprout {
;
}
public:
omit_p() = default;
SPROUT_CONSTEXPR omit_p() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
explicit SPROUT_CONSTEXPR omit_p(
Parser const& p
)

View file

@ -166,7 +166,7 @@ namespace sprout {
expr_type expr_;
std::size_t count_;
public:
repeat_p() = default;
SPROUT_CONSTEXPR repeat_p() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
explicit SPROUT_CONSTEXPR repeat_p(Parser const& p, std::size_t count = -1)
: expr_(sprout::weed::make_terminal_or_expr(p))
, count_(count)

View file

@ -57,7 +57,7 @@ namespace sprout {
;
}
public:
replace_p() = default;
SPROUT_CONSTEXPR replace_p() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
SPROUT_CONSTEXPR replace_p(
Parser const& p,
value_type const& value

View file

@ -47,7 +47,7 @@ namespace sprout {
expr_type expr_;
sprout::weed::limited::category limited_category_;
public:
limit_p() = default;
SPROUT_CONSTEXPR limit_p() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
explicit SPROUT_CONSTEXPR limit_p(
Parser const& p,
sprout::weed::limited::category limited_category = sprout::weed::limited::discard

View file

@ -46,7 +46,7 @@ namespace sprout {
private:
T t_;
public:
lit_str_p() = default;
SPROUT_CONSTEXPR lit_str_p() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
explicit SPROUT_CONSTEXPR lit_str_p(T const& t)
: t_(t)
{}
@ -119,7 +119,7 @@ namespace sprout {
private:
T t_;
public:
str_p() = default;
SPROUT_CONSTEXPR str_p() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
explicit SPROUT_CONSTEXPR str_p(T const& t)
: t_(t)
{}

View file

@ -22,7 +22,7 @@ namespace sprout {
Iterator current_;
Attribute attr_;
public:
parser_result() = default;
SPROUT_CONSTEXPR parser_result() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
SPROUT_CONSTEXPR parser_result(
bool success,
Iterator current,

View file

@ -17,7 +17,7 @@ namespace sprout {
//
struct unused {
public:
unused() = default;
SPROUT_CONSTEXPR unused() SPROUT_DEFAULTED_DEFAULT_CONSTRUCTOR_DECL
template<typename T>
SPROUT_CONSTEXPR unused(T) {}
template<typename T>