mirror of https://github.com/CGAL/cgal
deal with missing <source_location>
This commit is contained in:
parent
d5ae0c9b94
commit
8b16105a3d
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue