Fix compilation with gcc. Thanks Ivano.

This commit is contained in:
Thomas Krijnen
2015-03-13 10:40:31 +00:00
parent df1805921b
commit a28b5517e8
+9 -6
View File
@@ -159,14 +159,17 @@ void IfcWritableEntity::setArgument(int i, Argument* a) {
case IfcUtil::Argument_STRING: case IfcUtil::Argument_STRING:
this->setArgument(i, static_cast<std::string>(*a)); this->setArgument(i, static_cast<std::string>(*a));
break; break;
case IfcUtil::Argument_VECTOR_INT: case IfcUtil::Argument_VECTOR_INT: {
this->setArgument(i, static_cast< std::vector<int> >(*a)); std::vector<int> attr_value = *a;
this->setArgument(i, attr_value); }
break; break;
case IfcUtil::Argument_VECTOR_DOUBLE: case IfcUtil::Argument_VECTOR_DOUBLE: {
this->setArgument(i, static_cast< std::vector<double> >(*a)); std::vector<double> attr_value = *a;
this->setArgument(i, attr_value); }
break; break;
case IfcUtil::Argument_VECTOR_STRING: case IfcUtil::Argument_VECTOR_STRING: {
this->setArgument(i, static_cast< std::vector< std::string > >(*a)); std::vector<std::string> attr_value = *a;
this->setArgument(i, attr_value); }
break; break;
case IfcUtil::Argument_ENUMERATION: { case IfcUtil::Argument_ENUMERATION: {
IfcSchema::Type::Enum ty = IfcSchema::Type::GetAttributeEntity(_type, i); IfcSchema::Type::Enum ty = IfcSchema::Type::GetAttributeEntity(_type, i);