From febdef43f56e6331f9a42ea756abeed69cc5b434 Mon Sep 17 00:00:00 2001 From: Josh Essman Date: Thu, 14 Oct 2021 10:21:40 -0700 Subject: [PATCH] fix: add workaround for intel parameter pack bug --- include/fmt/os.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/fmt/os.h b/include/fmt/os.h index 297612fc8322..400e2c17b2fe 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -390,6 +390,13 @@ struct ostream_params { : ostream_params(params...) { this->buffer_size = bs.value; } + +// Intel has a bug that results in failure to deduce a constructor +// for empty parameter packs. +#if defined(__INTEL_COMPILER) && __INTEL_COMPILER < 2000 + ostream_params(int new_oflag) : oflag(new_oflag) {} + ostream_params(detail::buffer_size bs) : buffer_size(bs.value) {} +#endif }; FMT_END_DETAIL_NAMESPACE