From e02de085bb45766bda5b4ea2240854ae697659f3 Mon Sep 17 00:00:00 2001 From: argent0 <4rgento@gmail.com> Date: Thu, 19 Jul 2018 15:19:38 -0300 Subject: [PATCH] Fix build error resulting from assigning boost::uuids::random_generator (#41) Using a static generator to generate uuids This time explicitly writing the type. --- rhubarb/src/tools/platformTools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhubarb/src/tools/platformTools.cpp b/rhubarb/src/tools/platformTools.cpp index 116ff97..efeec20 100644 --- a/rhubarb/src/tools/platformTools.cpp +++ b/rhubarb/src/tools/platformTools.cpp @@ -57,7 +57,7 @@ path getBinDirectory() { path getTempFilePath() { 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()); return tempDirectory / fileName; }