diff --git a/example/example.cpp b/example/example.cpp index aeff6d76..22109463 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -180,7 +180,7 @@ void async_example() { #if !defined SPDLOG_USE_STD_FORMAT || defined(_MSC_VER) #include "spdlog/fmt/bin_to_hex.h" void binary_example() { - std::vector buf(80); + std::vector buf; for (int i = 0; i < 80; i++) { buf.push_back(static_cast(i & 0xff)); }