mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 14:33:28 +00:00
use a macro to change for boost > 1.86
This commit is contained in:
committed by
GitHub
parent
149181e28a
commit
1c19f08471
@@ -87,8 +87,12 @@ void expand(const std::string& s, std::vector<unsigned char>& v) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// A random number generator for the UUID
|
// Define the macro to handle different Boost versions
|
||||||
static boost::uuids::basic_random_generator<std::mt19937> gen;
|
#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() {
|
IfcParse::IfcGlobalId::IfcGlobalId() {
|
||||||
uuid_data_ = gen();
|
uuid_data_ = gen();
|
||||||
|
|||||||
Reference in New Issue
Block a user