Fix build error resulting from assigning boost::uuids::random_generator#41
Conversation
|
Your changes will create a new generator every time the function is called, which might affect performance depending on how often temporary files are created. Maybe try this instead? static boost::uuids::random_generator generateUuid;
string fileName = to_string(generateUuid()); |
|
@argent0 Thanks for pointing me to this code. The line I originally wrote certainly doesn't make sense. It creates a new My guess is that depending on the compiler, my original code may or may not invoke the move constructor, which seems to be missing at least from your version of Boost, leading to your compile error. Could you change your pull request to use @sh-dave's approach instead, then tell me whether it still works for you? |
This time explicitly writing the type.
|
Hi, I applied @sh-dave suggestions and got it to compile and work. Thanks for writing PS: The Travis build was canceled. Maybe because I sent two commits in rapid succession. |
|
Thanks for the PR! Travis is happy now, too. ;-) |
Hi, I had trouble building rhubarb on linux using boost 1.67.0
This fixes the issue for me. What do you think?