Closed ashley-b closed 5 years ago
Calling a constructor in C++ with parenthesis is basically an ambiguous syntax. I don't know whats wrong with this particular syntax. I am familiar with "C++'s most vexing parse" https://stackoverflow.com/questions/1424510/my-attempt-at-value-initialization-is-interpreted-as-a-function-declaration-and
Anyway, thanks; the C++11 curly braces do the trick. And also I dont see why the PluginPath is explicit, I will remove it.
Subtle bug found during build
Also I noticed https://github.com/pothosware/PothosCore/blob/4bb5aad9bdafb0424750a021e84d4d29d87da473/include/Pothos/Plugin/Path.hpp#L30 Not sure if this was to mitigate such problems, but far as I'm aware explicit on a default constructor has no effect.