Skip to content

Commit 53f6253

Browse files
committed
Fix compilation with gcc
1 parent 608c7d9 commit 53f6253

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ifcparse/IfcWrite.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@ void IfcWritableEntity::setArgument(int i, Argument* a) {
159159
case IfcUtil::Argument_STRING:
160160
this->setArgument(i, static_cast<std::string>(*a));
161161
break;
162-
case IfcUtil::Argument_BINARY:
163-
this->setArgument(i, static_cast< boost::dynamic_bitset<> >(*a));
162+
case IfcUtil::Argument_BINARY: {
163+
boost::dynamic_bitset<> attr_value = *a;
164+
this->setArgument(i, attr_value); }
164165
break;
165166
case IfcUtil::Argument_AGGREGATE_OF_INT: {
166167
std::vector<int> attr_value = *a;

0 commit comments

Comments
 (0)