mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
fix trivial constructor declaration
This commit is contained in:
parent
1bce2b4a5b
commit
478c476611
16 changed files with 89 additions and 69 deletions
|
@ -83,8 +83,12 @@ namespace sprout {
|
|||
SPROUT_CONSTEXPR basic_string_ref()
|
||||
: ptr_(0), len_(0)
|
||||
{}
|
||||
SPROUT_CONSTEXPR basic_string_ref(basic_string_ref const& rhs) = default;
|
||||
basic_string_ref& operator=(basic_string_ref const& rhs) = default;
|
||||
basic_string_ref(basic_string_ref const& rhs) = default;
|
||||
SPROUT_CXX14_CONSTEXPR basic_string_ref& operator=(basic_string_ref const& rhs) {
|
||||
basic_string_ref temp(rhs);
|
||||
temp.swap(*this);
|
||||
return *this;
|
||||
}
|
||||
SPROUT_CONSTEXPR basic_string_ref(const_pointer str)
|
||||
: ptr_(str), len_(traits_type::length(str))
|
||||
{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue