mirror of
https://github.com/boostorg/static_string.git
synced 2026-02-13 00:42:08 +00:00
Make static_string trivially copyable
This commit is contained in:
committed by
Gennaro Prota
parent
cd546285c4
commit
37a557d937
@@ -1093,11 +1093,7 @@ public:
|
||||
|
||||
Copy constructor.
|
||||
*/
|
||||
BOOST_STATIC_STRING_CPP14_CONSTEXPR
|
||||
basic_static_string(const basic_static_string& other) noexcept
|
||||
{
|
||||
assign(other);
|
||||
}
|
||||
basic_static_string(const basic_static_string& other) = default;
|
||||
|
||||
/** Constructor.
|
||||
|
||||
@@ -1185,12 +1181,8 @@ public:
|
||||
|
||||
@throw std::length_error `s.size() > max_size()`.
|
||||
*/
|
||||
BOOST_STATIC_STRING_CPP14_CONSTEXPR
|
||||
basic_static_string&
|
||||
operator=(const basic_static_string& s)
|
||||
{
|
||||
return assign(s);
|
||||
}
|
||||
operator=(const basic_static_string& s) = default;
|
||||
|
||||
/** Assign to the string.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user