mirror of
https://github.com/kennethreitz/static_string.git
synced 2026-06-05 23:00:20 +00:00
Guarded static_asserts
This commit is contained in:
@@ -916,7 +916,11 @@ public:
|
||||
void
|
||||
pop_back()
|
||||
{
|
||||
#ifdef BOOST_FIXED_STRING_USE_BOOST
|
||||
BOOST_ASSERT(n_ > 0);
|
||||
#else
|
||||
assert(n > 0);
|
||||
#endif
|
||||
Traits::assign(s_[--n_], 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user