deal with missing <source_location>

This commit is contained in:
Laurent Rineau 2024-03-29 08:30:03 +01:00
parent d5ae0c9b94
commit 8b16105a3d
1 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#include <iostream> #include <iostream>
#include <map> #include <map>
#include <CGAL/config.h>
#if __has_include(<source_location>)
#include <CGAL/NT_wrapper.h> #include <CGAL/NT_wrapper.h>
struct Map { struct Map {
@ -42,3 +44,10 @@ int main() {
} }
return 0; return 0;
} }
#else
int main() {
std::cerr << "C++20 <source_location> not available\n";
return 0;
}
#endif