From e2d87548f8d1f022f04107ad94c42d5739d472f0 Mon Sep 17 00:00:00 2001 From: Yaser Afshar Date: Sat, 27 Mar 2021 16:10:03 -0500 Subject: [PATCH] user-defined constructor user-defined constructor added to prevent Intel compilers warnings. According to the standard, objects need to have a user-defined constructor if instances are delcared const. --- include/fmt/os.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/fmt/os.h b/include/fmt/os.h index 73e421ad..0b0b94ed 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -344,6 +344,7 @@ long getpagesize(); namespace detail { struct buffer_size { + buffer_size() = default; size_t value = 0; buffer_size operator=(size_t val) const { auto bs = buffer_size();