File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if(INFRA_IS_TOPLEVEL)
3535 cmake_minimum_required (VERSION 3.21)
3636
3737 if (NOT CMAKE_CXX_STANDARD)
38- set (CMAKE_CXX_STANDARD 17 )
38+ set (CMAKE_CXX_STANDARD 20 )
3939 endif ()
4040
4141 if (INFRA_ENABLE_TESTS)
Original file line number Diff line number Diff line change 44
55namespace inf ::test {
66
7- using namespace date ;
7+ using namespace std ::chrono_literals ;
88
99TEST_CASE (" ChronoTest.time_point_to_utc_string" )
1010{
11- chrono::date_point date = 2017_y / feb / 1 ;
11+ chrono::date_point date = 2017y / std::chrono::February / 1 ;
1212
1313 CHECK (" 2017-02-01" == inf::chrono::to_string (" %Y-%m-%d" , date));
1414}
1515
1616TEST_CASE (" ChronoTest.time_point_to_string_custom_format" )
1717{
18- chrono::date_point date = 2017_y / feb / 1 ;
18+ chrono::date_point date = 2017y / std::chrono::February / 1 ;
1919
2020 CHECK (" 2017-02-01" == inf::chrono::to_string (" %Y-%m-%d" , date));
2121 CHECK (" 2017-01-02" == inf::chrono::to_string (" %Y-%d-%m" , date));
You can’t perform that action at this time.
0 commit comments