|
6 | 6 | // http://www.boost.org/LICENSE_1_0.txt)
|
7 | 7 | //
|
8 | 8 | #if !defined(__cpp_rvalue_references)
|
9 |
| -#error "[error][reflect-v1.0.8] __cpp_rvalue_references not supported!" |
| 9 | +#error "[error][reflect-v1.0.9] __cpp_rvalue_references not supported!" |
10 | 10 | #elif !defined(__cpp_decltype)
|
11 |
| -#error "[error][reflect-v1.0.8] __cpp_decltype not supported!" |
| 11 | +#error "[error][reflect-v1.0.9] __cpp_decltype not supported!" |
12 | 12 | #elif !defined(__cpp_decltype_auto)
|
13 |
| -#error "[error][reflect-v1.0.8] __cpp_decltype_auto not supported!" |
| 13 | +#error "[error][reflect-v1.0.9] __cpp_decltype_auto not supported!" |
14 | 14 | #elif !defined(__cpp_return_type_deduction)
|
15 |
| -#error "[error][reflect-v1.0.8] __cpp_return_type_deduction not supported!" |
| 15 | +#error "[error][reflect-v1.0.9] __cpp_return_type_deduction not supported!" |
16 | 16 | #elif !defined(__cpp_deduction_guides)
|
17 |
| -#error "[error][reflect-v1.0.8] __cpp_deduction_guides not supported!" |
| 17 | +#error "[error][reflect-v1.0.9] __cpp_deduction_guides not supported!" |
18 | 18 | #elif !defined(__cpp_generic_lambdas)
|
19 |
| -#error "[error][reflect-v1.0.8] __cpp_generic_lambdas not supported!" |
| 19 | +#error "[error][reflect-v1.0.9] __cpp_generic_lambdas not supported!" |
20 | 20 | #elif !defined(__cpp_constexpr)
|
21 |
| -#error "[error][reflect-v1.0.8] __cpp_constexpr not supported!" |
| 21 | +#error "[error][reflect-v1.0.9] __cpp_constexpr not supported!" |
22 | 22 | #elif !defined(__cpp_if_constexpr)
|
23 |
| -#error "[error][reflect-v1.0.8] __cpp_if_constexpr not supported!" |
| 23 | +#error "[error][reflect-v1.0.9] __cpp_if_constexpr not supported!" |
24 | 24 | #elif !defined(__cpp_alias_templates)
|
25 |
| -#error "[error][reflect-v1.0.8] __cpp_alias_templates not supported!" |
| 25 | +#error "[error][reflect-v1.0.9] __cpp_alias_templates not supported!" |
26 | 26 | #elif !defined(__cpp_variadic_templates)
|
27 |
| -#error "[error][reflect-v1.0.8] __cpp_variadic_templates not supported!" |
| 27 | +#error "[error][reflect-v1.0.9] __cpp_variadic_templates not supported!" |
28 | 28 | #elif !defined(__cpp_fold_expressions)
|
29 |
| -#error "[error][reflect-v1.0.8] __cpp_fold_expressions not supported!" |
| 29 | +#error "[error][reflect-v1.0.9] __cpp_fold_expressions not supported!" |
30 | 30 | #elif !defined(__cpp_static_assert)
|
31 |
| -#error "[error][reflect-v1.0.8] __cpp_static_assert not supported!" |
| 31 | +#error "[error][reflect-v1.0.9] __cpp_static_assert not supported!" |
32 | 32 | #elif !defined(__cpp_concepts)
|
33 |
| -#error "[error][reflect-v1.0.8] __cpp_concepts not supported!" |
| 33 | +#error "[error][reflect-v1.0.9] __cpp_concepts not supported!" |
34 | 34 | #elif !defined(__cpp_fold_expressions)
|
35 |
| -#error "[error][reflect-v1.0.8] __cpp_fold_expressions not supported!" |
| 35 | +#error "[error][reflect-v1.0.9] __cpp_fold_expressions not supported!" |
36 | 36 | #elif !defined(__cpp_generic_lambdas)
|
37 |
| -#error "[error][reflect-v1.0.8] __cpp_generic_lambdas not supported!" |
| 37 | +#error "[error][reflect-v1.0.9] __cpp_generic_lambdas not supported!" |
38 | 38 | #elif !defined(__cpp_nontype_template_args)
|
39 |
| -#error "[error][reflect-v1.0.8] __cpp_nontype_template_args not supported!" |
| 39 | +#error "[error][reflect-v1.0.9] __cpp_nontype_template_args not supported!" |
40 | 40 | #elif !defined(__cpp_nontype_template_parameter_auto)
|
41 |
| -#error "[error][reflect-v1.0.8] __cpp_nontype_template_parameter_auto not supported!" |
| 41 | +#error "[error][reflect-v1.0.9] __cpp_nontype_template_parameter_auto not supported!" |
42 | 42 | #elif !__has_include(<array>)
|
43 |
| -#error "[error][reflect-v1.0.8] <array> not found!" |
| 43 | +#error "[error][reflect-v1.0.9] <array> not found!" |
44 | 44 | #elif !__has_include(<string_view>)
|
45 |
| -#error "[error][reflect-v1.0.8] <string_view> not found!" |
| 45 | +#error "[error][reflect-v1.0.9] <string_view> not found!" |
46 | 46 | #elif !__has_include(<source_location>)
|
47 |
| -#error "[error][reflect-v1.0.8] <source_location> not found!" |
| 47 | +#error "[error][reflect-v1.0.9] <source_location> not found!" |
48 | 48 | #elif !__has_include(<type_traits>)
|
49 |
| -#error "[error][reflect-v1.0.8] <type_traits> not found!" |
| 49 | +#error "[error][reflect-v1.0.9] <type_traits> not found!" |
50 | 50 | #elif !__has_include(<tuple>)
|
51 |
| -#error "[error][reflect-v1.0.8] <tuple> not found!" |
| 51 | +#error "[error][reflect-v1.0.9] <tuple> not found!" |
52 | 52 | #else
|
53 | 53 | #ifndef REFLECT
|
54 |
| -#define REFLECT 1'0'8 // SemVer |
| 54 | +#define REFLECT 1'0.9 // SemVer |
55 | 55 |
|
56 | 56 | #include <array>
|
57 | 57 | #include <string_view>
|
@@ -79,7 +79,7 @@ struct REFLECT_STRUCT { void* MEMBER; enum class ENUM { VALUE }; }; // has to b
|
79 | 79 | /**
|
80 | 80 | * Minimal static reflection library ($CXX -x c++ -std=c++20 -c reflect) [https://godbolt.org/z/dd6cfW98c]
|
81 | 81 | */
|
82 |
| -namespace reflect::inline v1_0_8 { |
| 82 | +namespace reflect::inline v1_0_9 { |
83 | 83 | namespace detail {
|
84 | 84 | template<class T> extern const T ext{};
|
85 | 85 | struct any { template<class T> constexpr operator T() const noexcept; };
|
|
0 commit comments