From 53f625346ffe6201df38719bfe2c6a21e696e588 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 7 Apr 2015 19:26:01 +0000 Subject: [PATCH] Fix compilation with gcc --- src/ifcparse/IfcWrite.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ifcparse/IfcWrite.cpp b/src/ifcparse/IfcWrite.cpp index 4445f31e58..c6945f0916 100644 --- a/src/ifcparse/IfcWrite.cpp +++ b/src/ifcparse/IfcWrite.cpp @@ -159,8 +159,9 @@ void IfcWritableEntity::setArgument(int i, Argument* a) { case IfcUtil::Argument_STRING: this->setArgument(i, static_cast(*a)); break; - case IfcUtil::Argument_BINARY: - this->setArgument(i, static_cast< boost::dynamic_bitset<> >(*a)); + case IfcUtil::Argument_BINARY: { + boost::dynamic_bitset<> attr_value = *a; + this->setArgument(i, attr_value); } break; case IfcUtil::Argument_AGGREGATE_OF_INT: { std::vector attr_value = *a;