mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 19:09:07 +00:00
use a macro to change for boost > 1.86
This commit is contained in:
committed by
Thomas Krijnen
parent
1fe168d331
commit
0f87bd8206
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user