Compare commits

...

2 Commits

Author SHA1 Message Date
Kristoffer Andersen 1c19f08471 use a macro to change for boost > 1.86 2024-09-02 17:16:47 +02:00
Kristoffer Andersen 149181e28a Update IfcGlobalId.cpp to support boost 1.86
It looks like mt19937 is no longer a member of boost in boost 1.86. I propose we use to std::mt19937 (which is already how it is used by svgfill.cpp)

see failure log from conda forge libboost 1.86 test here:
https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=1008654&view=logs&j=4f922444-fdfe-5dcf-b824-02f86439ef14&t=b2a8456a-fb11-5506-ca32-5ccd32538dc0&l=880
2024-09-02 17:07:30 +02:00
+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<boost::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();