mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-05 23:41:44 +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
|
||||
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