2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-21 03:02:18 +00:00

Fixed missing maybe_unused in static_string

This commit is contained in:
ruben
2020-04-21 15:44:48 +01:00
parent f2f840c679
commit ff14e79a5d

View File

@@ -26,7 +26,7 @@ class static_string
std::array<char, max_size> buffer_;
std::size_t size_;
void size_check(std::size_t sz) const noexcept { assert(sz <= max_size); }
void size_check([[maybe_unused]] std::size_t sz) const noexcept { assert(sz <= max_size); }
public:
static_string() noexcept: size_(0) {}
static_string(std::string_view value) noexcept : size_(value.size())