diff --git a/src/ifcparse/IfcGlobalId.cpp b/src/ifcparse/IfcGlobalId.cpp index 235e6443bf..e6c77e67c5 100644 --- a/src/ifcparse/IfcGlobalId.cpp +++ b/src/ifcparse/IfcGlobalId.cpp @@ -87,8 +87,12 @@ void expand(const std::string& s, std::vector& v) { } } -// A random number generator for the UUID -static boost::uuids::basic_random_generator gen; +// Define the macro to handle different Boost versions +#if BOOST_VERSION >= 108600 + static boost::uuids::basic_random_generator gen; +#else + static boost::uuids::basic_random_generator gen; +#endif IfcParse::IfcGlobalId::IfcGlobalId() { uuid_data_ = gen();