mirror of
https://github.com/boostorg/static_string.git
synced 2026-01-26 16:42:19 +01:00
Guarded static_asserts
This commit is contained in:
@@ -795,7 +795,11 @@ to_fixed_string(Integer x)
|
||||
{
|
||||
using CharT = char;
|
||||
using Traits = std::char_traits<CharT>;
|
||||
#ifdef BOOST_FIXED_STRING_USE_BOOST
|
||||
BOOST_STATIC_ASSERT(std::is_integral<Integer>::value);
|
||||
#else
|
||||
static_assert(std::is_integral<Integer>::value);
|
||||
#endif
|
||||
char buf[detail::max_digits(sizeof(Integer))];
|
||||
auto last = buf + sizeof(buf);
|
||||
auto it = detail::raw_to_string<
|
||||
|
||||
Reference in New Issue
Block a user