File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed
Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,6 @@ cmake_minimum_required(VERSION 3.25)
44
55project (beman.scope DESCRIPTION "Generic Scope Guard" LANGUAGES CXX)
66
7- # Define an option for the C++ standard with a default of 20
8- # tbd remove: option(CXX_STANDARD "C++ standard to use (minimum C++20)" 20)
9-
10- # Ensure the specified standard is at least C++20
11- if (CMAKE_CXX_STANDARD LESS 20)
12- message (FATAL_ERROR "The minimum required C++ standard is C++20" )
13- endif ()
14-
15- # Set the C++ standard based on the user input
16- # tbd remove:set(CMAKE_CXX_STANDARD ${CXX_STANDARD})
17-
187enable_testing ()
198
209# [CMAKE.SKIP_TESTS]
Original file line number Diff line number Diff line change 66#include < type_traits>
77#include < utility>
88
9+ #if __cplusplus < 202002L
10+ #error "C++20 or later is required"
11+ #endif
12+
913#include < experimental/scope>
1014
1115namespace beman ::scope {
You can’t perform that action at this time.
0 commit comments