switch to using __cpp_lib_chrono to determine if chrono or date/date.h should be used

This commit is contained in:
AdenKoperczak 2024-09-22 12:02:38 -04:00
parent 88246b26fe
commit 79e39021a6
14 changed files with 25 additions and 25 deletions

View file

@ -17,7 +17,7 @@
#include <boost/bimap.hpp>
#include <boost/bimap/unordered_set_of.hpp>
#if !(defined(_MSC_VER) || defined(__clang__))
#if (__cpp_lib_chrono < 201907L)
# include <date/date.h>
#endif
@ -143,7 +143,7 @@ bool PVtec::Parse(const std::string& s)
{
using namespace std::chrono;
#if !(defined(_MSC_VER) || defined(__clang__))
#if (__cpp_lib_chrono < 201907L)
using namespace date;
#endif