Fix build error resulting from assigning boost::uuids::random_generator (#41)
Using a static generator to generate uuids This time explicitly writing the type.
This commit is contained in:
parent
5a6630f4b2
commit
e02de085bb
|
@ -57,7 +57,7 @@ path getBinDirectory() {
|
||||||
|
|
||||||
path getTempFilePath() {
|
path getTempFilePath() {
|
||||||
path tempDirectory = boost::filesystem::temp_directory_path();
|
path tempDirectory = boost::filesystem::temp_directory_path();
|
||||||
static auto generateUuid = boost::uuids::random_generator();
|
static boost::uuids::random_generator generateUuid;
|
||||||
string fileName = to_string(generateUuid());
|
string fileName = to_string(generateUuid());
|
||||||
return tempDirectory / fileName;
|
return tempDirectory / fileName;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue