You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while MSVC is totally happy with this, for Clang17 this results in a warning:
/OpenSpace/include/openspace/scene/profile.h:143:14: warning: explicitly defaulted three-way comparison operator is implicitly deleted [-Wdefaulted-function-deleted]
143 | auto operator<=>(const CameraNavState&) const = default;
| ^
/OpenSpace/include/openspace/scene/profile.h:138:20: note: defaulted 'operator<=>' is implicitly deleted because there is no viable three-way comparison function for member 'position'
138 | glm::dvec3 position;
| ^
/OpenSpace/include/openspace/scene/profile.h:143:57: note: replace 'default' with 'delete'
Is there a CMake flag that I'm missing to set that already would enable this? I went through the header and didn't find it, but it seems to me as if enough operators are defined for the compiler to be able to automatically synthesize the spaceship. Alternatively, would it be possible to add that definition to the types?
The text was updated successfully, but these errors were encountered:
We use glm in our project extensively and have recently added the new spaceship operator to our classes, for example:
while MSVC is totally happy with this, for Clang17 this results in a warning:
Is there a CMake flag that I'm missing to set that already would enable this? I went through the header and didn't find it, but it seems to me as if enough operators are defined for the compiler to be able to automatically synthesize the spaceship. Alternatively, would it be possible to add that definition to the types?
The text was updated successfully, but these errors were encountered: