update CI

fix #31, fix #20
This commit is contained in:
sdarwin
2020-12-10 21:59:29 +00:00
committed by Alan de Freitas
parent 5d6fefdd2a
commit 7822f1b991
11 changed files with 1017 additions and 622 deletions
+28 -4
View File
@@ -257,11 +257,8 @@ public:
}
size_type size_ = 0;
#ifdef BOOST_STATIC_STRING_CPP20
value_type data_[N + 1];
#else
value_type data_[N + 1]{};
#endif
};
// Optimization for when the size is 0
@@ -1060,6 +1057,33 @@ public:
//
//--------------------------------------------------------------------------
/** Assign to the string.
Replaces the contents with those of
the string `s`.
@par Complexity
Linear in `s.size()`.
@par Exception Safety
Strong guarantee.
@return `*this`
@param s The string to replace
the contents with.
@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);
}
/** Assign to the string.
Replaces the contents with those of