|
1 | 1 | In file included from mixed-bugfix-for-ufcs-non-local.cpp:6:
|
2 | 2 | ../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
|
3 |
| - 2100 | constexpr auto is( X const& x ) -> bool |
| 3 | + 2100 | requires (std::is_same_v<X,std::any> && !std::is_same_v<T,std::any> && !std::is_same_v<T,empty>) |
4 | 4 | | ^
|
5 | 5 | ../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
|
6 |
| - 2137 | |
| 6 | + 2137 | { return std::any_cast<T>( x ); } |
7 | 7 | | ^
|
8 | 8 | mixed-bugfix-for-ufcs-non-local.cpp2:13:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
|
9 | 9 | mixed-bugfix-for-ufcs-non-local.cpp2:13:36: error: template argument 1 is invalid
|
10 | 10 | ../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
|
11 |
| - 2100 | constexpr auto is( X const& x ) -> bool |
| 11 | + 2100 | requires (std::is_same_v<X,std::any> && !std::is_same_v<T,std::any> && !std::is_same_v<T,empty>) |
12 | 12 | | ^
|
13 | 13 | ../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
|
14 |
| - 2137 | |
| 14 | + 2137 | { return std::any_cast<T>( x ); } |
15 | 15 | | ^
|
16 | 16 | mixed-bugfix-for-ufcs-non-local.cpp2:21:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
|
17 | 17 | mixed-bugfix-for-ufcs-non-local.cpp2:21:36: error: template argument 1 is invalid
|
18 | 18 | ../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
|
19 |
| - 2100 | constexpr auto is( X const& x ) -> bool |
| 19 | + 2100 | requires (std::is_same_v<X,std::any> && !std::is_same_v<T,std::any> && !std::is_same_v<T,empty>) |
20 | 20 | | ^
|
21 | 21 | ../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
|
22 |
| - 2137 | |
| 22 | + 2137 | { return std::any_cast<T>( x ); } |
23 | 23 | | ^
|
24 | 24 | mixed-bugfix-for-ufcs-non-local.cpp2:31:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
|
25 | 25 | mixed-bugfix-for-ufcs-non-local.cpp2:31:36: error: template argument 1 is invalid
|
26 | 26 | ../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
|
27 |
| - 2100 | constexpr auto is( X const& x ) -> bool |
| 27 | + 2100 | requires (std::is_same_v<X,std::any> && !std::is_same_v<T,std::any> && !std::is_same_v<T,empty>) |
28 | 28 | | ^
|
29 | 29 | ../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
|
30 |
| - 2137 | |
| 30 | + 2137 | { return std::any_cast<T>( x ); } |
31 | 31 | | ^
|
32 | 32 | mixed-bugfix-for-ufcs-non-local.cpp2:33:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
|
33 | 33 | mixed-bugfix-for-ufcs-non-local.cpp2:33:36: error: template argument 1 is invalid
|
34 | 34 | ../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
|
35 |
| - 2100 | constexpr auto is( X const& x ) -> bool |
| 35 | + 2100 | requires (std::is_same_v<X,std::any> && !std::is_same_v<T,std::any> && !std::is_same_v<T,empty>) |
36 | 36 | | ^
|
37 | 37 | ../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
|
38 |
| - 2137 | |
| 38 | + 2137 | { return std::any_cast<T>( x ); } |
39 | 39 | | ^
|
40 | 40 | mixed-bugfix-for-ufcs-non-local.cpp2:21:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
|
41 | 41 | mixed-bugfix-for-ufcs-non-local.cpp2:21:36: error: template argument 1 is invalid
|
0 commit comments