From 48f3d528802bd05b15d72a54d353ff2baa07a7e2 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 17 Aug 2020 18:02:59 +0200 Subject: [PATCH] Fix brace init with struct defaults #951 --- src/ifcconvert/IfcConvert.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ifcconvert/IfcConvert.cpp b/src/ifcconvert/IfcConvert.cpp index ca4fc26490..f164dc9c9d 100644 --- a/src/ifcconvert/IfcConvert.cpp +++ b/src/ifcconvert/IfcConvert.cpp @@ -178,7 +178,10 @@ bool init_input_file(const std::string& filename, IfcParse::IfcFile*& ifc_file, // from https://stackoverflow.com/questions/31696328/boost-program-options-using-zero-parameter-options-multiple-times struct verbosity_counter { - int count = 0; + int count; + verbosity_counter(int c = 0) { + count = c; + } }; #if defined(_MSC_VER) && defined(_UNICODE)