use a macro to change for boost > 1.86

This commit is contained in:
Kristoffer Andersen
2024-09-02 17:16:47 +02:00
committed by Thomas Krijnen
parent 1fe168d331
commit 0f87bd8206
+6 -2
View File
@@ -87,8 +87,12 @@ void expand(const std::string& s, std::vector<unsigned char>& v) {
}
}
// A random number generator for the UUID
static boost::uuids::basic_random_generator<std::mt19937> gen;
// Define the macro to handle different Boost versions
#if BOOST_VERSION >= 108600
static boost::uuids::basic_random_generator<std::mt19937> gen;
#else
static boost::uuids::basic_random_generator<boost::mt19937> gen;
#endif
IfcParse::IfcGlobalId::IfcGlobalId() {
uuid_data_ = gen();