回答編集履歴
1
符号の分の文字列を考慮に入れていなかったのを修正
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
constexpr double log10 = 3.32192809489
|
20
20
|
|
21
|
-
static_assert(SIZE > std::numeric_limits<int>::digits / log10 +
|
21
|
+
static_assert(SIZE > std::numeric_limits<int>::digits / log10 + 2, "hogehoge usage: buffer is too small");
|
22
22
|
|
23
23
|
static_assert(SIZE > DIGIT, "hogehoge usage: buffer is too small");
|
24
24
|
|