mariusbancila / stduuid

A C++17 cross-platform implementation for UUIDs
MIT License
758 stars 112 forks source link

Fix build with GCC10 #81

Open Ka0o0 opened 1 year ago

Ka0o0 commented 1 year ago

GCC10 ships with a native C++20 span implementation. However, enabling UUID_USING_CXX20_SPAN in combination with GCC10 and the experimental c++20 support causes a compilation error. This is due to GCC10 sets the __cplusplus to a value strictly greater than 201703L but not to 202002L.

Fixes #80