Skip to content

Commit 78f4d7d

Browse files
committed
Fix build with Boost 1.58.0. Patch by stinkfist0. Thanks.
1 parent 92bc7b1 commit 78f4d7d

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/examples/IfcOpenHouse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
typedef std::string S;
4646
typedef IfcParse::IfcGlobalId guid;
4747
typedef std::pair<double, double> XY;
48-
boost::none_t const null = (static_cast<boost::none_t>(0));
48+
boost::none_t const null = boost::none;
4949

5050
// The creation of Nurbs-surface for the IfcSite mesh, to be implemented lateron
5151
void createGroundShape(TopoDS_Shape& shape);

src/ifcgeom/IfcGeomFunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ IfcSchema::IfcProductDefinitionShape* IfcGeom::tesselate(TopoDS_Shape& shape, do
637637
0, std::string("Facetation"), std::string("SurfaceModel"), items);
638638

639639
reps->push(rep);
640-
IfcSchema::IfcProductDefinitionShape* shapedef = new IfcSchema::IfcProductDefinitionShape(0, 0, reps);
640+
IfcSchema::IfcProductDefinitionShape* shapedef = new IfcSchema::IfcProductDefinitionShape(boost::none, boost::none, reps);
641641

642642
es->push(shell);
643643
es->push(surface_model);

src/ifcparse/IfcHierarchyHelper.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ IfcSchema::IfcProductDefinitionShape* IfcHierarchyHelper::addExtrudedPolyline(co
278278
? context
279279
: getRepresentationContext("Model"), std::string("Body"), std::string("SweptSolid"), items);
280280
reps->push(rep);
281-
IfcSchema::IfcProductDefinitionShape* shape = new IfcSchema::IfcProductDefinitionShape(0, 0, reps);
281+
IfcSchema::IfcProductDefinitionShape* shape = new IfcSchema::IfcProductDefinitionShape(boost::none, boost::none, reps);
282282
addEntity(rep);
283283
addEntity(shape);
284284
addExtrudedPolyline(rep, points, h, place, place2, dir, context);
@@ -292,7 +292,7 @@ void IfcHierarchyHelper::addBox(IfcSchema::IfcShapeRepresentation* rep, double w
292292
{
293293
if (false) {
294294
IfcSchema::IfcRectangleProfileDef* profile = new IfcSchema::IfcRectangleProfileDef(
295-
IfcSchema::IfcProfileTypeEnum::IfcProfileType_AREA, 0, place ? place : addPlacement2d(), w, d);
295+
IfcSchema::IfcProfileTypeEnum::IfcProfileType_AREA, boost::none, place ? place : addPlacement2d(), w, d);
296296
IfcSchema::IfcExtrudedAreaSolid* solid = new IfcSchema::IfcExtrudedAreaSolid(profile,
297297
place2 ? place2 : addPlacement3d(), dir ? dir : addTriplet<IfcSchema::IfcDirection>(0, 0, 1), h);
298298

@@ -333,7 +333,7 @@ IfcSchema::IfcProductDefinitionShape* IfcHierarchyHelper::addBox(double w, doubl
333333
IfcSchema::IfcShapeRepresentation* rep = new IfcSchema::IfcShapeRepresentation(
334334
context ? context : getRepresentationContext("Model"), std::string("Body"), std::string("SweptSolid"), items);
335335
reps->push(rep);
336-
IfcSchema::IfcProductDefinitionShape* shape = new IfcSchema::IfcProductDefinitionShape(0, 0, reps);
336+
IfcSchema::IfcProductDefinitionShape* shape = new IfcSchema::IfcProductDefinitionShape(boost::none, boost::none, reps);
337337
addEntity(rep);
338338
addEntity(shape);
339339
addBox(rep, w, d, h, place, place2, dir, context);
@@ -354,7 +354,7 @@ IfcSchema::IfcProductDefinitionShape* IfcHierarchyHelper::addAxisBox(double w, d
354354
reps->push(axis_rep);
355355
reps->push(body_rep);
356356

357-
IfcSchema::IfcProductDefinitionShape* shape = new IfcSchema::IfcProductDefinitionShape(0, 0, reps);
357+
IfcSchema::IfcProductDefinitionShape* shape = new IfcSchema::IfcProductDefinitionShape(boost::none, boost::none, reps);
358358
addEntity(shape);
359359
addEntity(body_rep);
360360
addBox(body_rep, w, d, h, 0, 0, 0, context);

0 commit comments

Comments
 (0)