forked from boostorg/static_string
Small bug fix
This commit is contained in:
@ -115,7 +115,7 @@ Certain features can be enabled and disabled though defining configuration macro
|
|||||||
|
|
||||||
[heading Acknowledgments]
|
[heading Acknowledgments]
|
||||||
|
|
||||||
Thanks to [@@https://github.com/K-ballo Agustín Bergé], [@https://github.com/pdimov Peter Dimov], [@https://github.com/glenfe Glen Fernandes], and [@https://github.com/LeonineKing1199 Christian Mazakas] for their constant feedback and guidance during the development of this library.
|
Thanks to [@https://github.com/K-ballo Agustín Bergé], [@https://github.com/pdimov Peter Dimov], [@https://github.com/glenfe Glen Fernandes], and [@https://github.com/LeonineKing1199 Christian Mazakas] for their constant feedback and guidance during the development of this library.
|
||||||
|
|
||||||
The development of this library was sponsored by [@https://cppalliance.org The C++ Alliance].
|
The development of this library was sponsored by [@https://cppalliance.org The C++ Alliance].
|
||||||
|
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
namespace boost {
|
namespace boost {
|
||||||
namespace static_strings {
|
namespace static_strings {
|
||||||
|
|
||||||
template<std::size_t, typename, typename>
|
#ifndef BOOST_STATIC_STRING_DOCS
|
||||||
|
template<std::size_t N, typename CharT, typename Traits>
|
||||||
class basic_static_string;
|
class basic_static_string;
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@ -33,7 +34,6 @@ class basic_static_string;
|
|||||||
//
|
//
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef BOOST_STATIC_STRING_DOCS
|
|
||||||
template<std::size_t N>
|
template<std::size_t N>
|
||||||
using static_string =
|
using static_string =
|
||||||
basic_static_string<N, char, std::char_traits<char>>;
|
basic_static_string<N, char, std::char_traits<char>>;
|
||||||
@ -50,6 +50,11 @@ template<std::size_t N>
|
|||||||
using static_u32string =
|
using static_u32string =
|
||||||
basic_static_string<N, char32_t, std::char_traits<char32_t>>;
|
basic_static_string<N, char32_t, std::char_traits<char32_t>>;
|
||||||
|
|
||||||
|
#ifdef BOOST_STATIC_STRING_CPP20
|
||||||
|
using static_u8string =
|
||||||
|
basic_static_string<N, char8_t, std::char_traits<char8_t>>;
|
||||||
|
#endif
|
||||||
|
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// Detail
|
// Detail
|
||||||
@ -66,7 +71,7 @@ using smallest_width =
|
|||||||
typename std::conditional<(N <= (std::numeric_limits<unsigned int>::max)()), unsigned int,
|
typename std::conditional<(N <= (std::numeric_limits<unsigned int>::max)()), unsigned int,
|
||||||
typename std::conditional<(N <= (std::numeric_limits<unsigned long>::max)()), unsigned long,
|
typename std::conditional<(N <= (std::numeric_limits<unsigned long>::max)()), unsigned long,
|
||||||
typename std::conditional<(N <= (std::numeric_limits<unsigned long long>::max)()), unsigned long long,
|
typename std::conditional<(N <= (std::numeric_limits<unsigned long long>::max)()), unsigned long long,
|
||||||
void>::type>::type>::type>::type>::type;
|
std::size_t>::type>::type>::type>::type>::type;
|
||||||
|
|
||||||
// std::is_nothrow_convertible is C++20
|
// std::is_nothrow_convertible is C++20
|
||||||
template<typename To>
|
template<typename To>
|
||||||
@ -721,6 +726,13 @@ defined(BOOST_STATIC_STRING_NO_PTR_COMP_FUNCTIONS)
|
|||||||
basic_static_string<N, char32_t, std::char_traits<char32_t>>;
|
basic_static_string<N, char32_t, std::char_traits<char32_t>>;
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
|
Addtionally, the alias `static_u8string` is provided in C++20
|
||||||
|
|
||||||
|
@code
|
||||||
|
using static_u8string =
|
||||||
|
basic_static_string<N, char8_t, std::char_traits<char8_t>>;
|
||||||
|
@endcode
|
||||||
|
|
||||||
@see to_static_string
|
@see to_static_string
|
||||||
*/
|
*/
|
||||||
template<std::size_t N, typename CharT,
|
template<std::size_t N, typename CharT,
|
||||||
|
Reference in New Issue
Block a user