File tree 2 files changed +33
-0
lines changed
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ include_directories (SYSTEM "include" )
2
+
1
3
add_subdirectory (msvc_stl_p0323r12_test)
2
4
if (MSVC_TOOLSET_VERSION GREATER_EQUAL 143)
3
5
# can only built with v143 and later
Original file line number Diff line number Diff line change
1
+ // Copyright (c) Microsoft Corporation.
2
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3
+
4
+ #pragma once
5
+
6
+ #include < yvals_core.h>
7
+
8
+ namespace detail {
9
+ constexpr bool permissive () {
10
+ return false ;
11
+ }
12
+
13
+ template <class >
14
+ struct PermissiveTestBase {
15
+ static constexpr bool permissive () {
16
+ return true ;
17
+ }
18
+ };
19
+
20
+ template <class T >
21
+ struct PermissiveTest : PermissiveTestBase<T> {
22
+ static constexpr bool test () {
23
+ return permissive ();
24
+ }
25
+ };
26
+ } // namespace detail
27
+
28
+ template <class T >
29
+ constexpr bool is_permissive_v = detail::PermissiveTest<T>::test();
30
+
31
+ _INLINE_VAR constexpr bool is_permissive = is_permissive_v<int >;
You can’t perform that action at this time.
0 commit comments