File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${ipaddress_SOURCE_DIR}/${CMAKE_BUILD_TYPE}/$
66SET (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${ipaddress_SOURCE_DIR} /${CMAKE_BUILD_TYPE} /${CMAKE_SYSTEM_NAME} )
77# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wextra")
88
9- set (CMAKE_CXX_STANDARD 17 )
9+ set (CMAKE_CXX_STANDARD 23 )
1010set (CMAKE_CXX_STANDARD_REQUIRED ON )
1111set (CMAKE_CXX_EXTENSIONS OFF )
1212
Original file line number Diff line number Diff line change @@ -609,14 +609,14 @@ int main() {
609609 assert .deepEqual (IPAddress::to_string_vec (IPAddress::summarize (ips)),
610610 {" 10.0.0.12/30" , " 10.0.100.0/24" });
611611
612- ips = {IPAddress::parse (" 172.16.0.0/31" ).unwrap (),
612+ auto ips2 = {IPAddress::parse (" 172.16.0.0/31" ).unwrap (),
613613 IPAddress::parse (" 10.10.2.1/32" ).unwrap ()};
614- assert .deepEqual (IPAddress::to_string_vec (IPAddress::summarize (ips )),
614+ assert .deepEqual (IPAddress::to_string_vec (IPAddress::summarize (ips2 )),
615615 {" 10.10.2.1/32" , " 172.16.0.0/31" });
616616
617- ips = {IPAddress::parse (" 172.16.0.0/32" ).unwrap (),
617+ auto ips1 = {IPAddress::parse (" 172.16.0.0/32" ).unwrap (),
618618 IPAddress::parse (" 10.10.2.1/32" ).unwrap ()};
619- assert .deepEqual (IPAddress::to_string_vec (IPAddress::summarize (ips )),
619+ assert .deepEqual (IPAddress::to_string_vec (IPAddress::summarize (ips1 )),
620620 {" 10.10.2.1/32" , " 172.16.0.0/32" });
621621 });
622622
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ int main(int, char **) {
2323 assert .equal (err.text (), " testcase" );
2424 try {
2525 err.unwrap ();
26- assert .isTrue (true , " unwrap should not work" );
27- } catch (OptionError e) {
26+ assert .isTrue (false , " unwrap should not work" );
27+ } catch (std::exception e) {
2828 }
2929 });
3030
You can’t perform that action at this time.
0 commit comments