From d0fc98de71fa2505d8b33812fba17e9c7ae6b8ee Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Mon, 18 Mar 2024 16:13:51 -0400 Subject: [PATCH] The `has_tagged_ctor` header should have been properly named. --- Reflection/CMakeLists.txt | 2 +- Reflection/{tagged_ctor_size.h => has_tagged_ctor.h} | 8 ++++---- .../{tagged_ctor_size.test => has_tagged_ctor.test}/0.cc | 4 ++-- .../CMakeLists.txt | 0 4 files changed, 7 insertions(+), 7 deletions(-) rename Reflection/{tagged_ctor_size.h => has_tagged_ctor.h} (90%) rename Reflection/{tagged_ctor_size.test => has_tagged_ctor.test}/0.cc (79%) rename Reflection/{tagged_ctor_size.test => has_tagged_ctor.test}/CMakeLists.txt (100%) diff --git a/Reflection/CMakeLists.txt b/Reflection/CMakeLists.txt index e115a64..76ddd72 100644 --- a/Reflection/CMakeLists.txt +++ b/Reflection/CMakeLists.txt @@ -1,2 +1,2 @@ add_subdirectory( tuplizeAggregate.test ) -add_subdirectory( tagged_ctor_size.test ) +add_subdirectory( has_tagged_ctor.test ) diff --git a/Reflection/tagged_ctor_size.h b/Reflection/has_tagged_ctor.h similarity index 90% rename from Reflection/tagged_ctor_size.h rename to Reflection/has_tagged_ctor.h index 4a9e7ce..5fcce43 100644 --- a/Reflection/tagged_ctor_size.h +++ b/Reflection/has_tagged_ctor.h @@ -12,7 +12,7 @@ static_assert( __cplusplus > 2020'99 ); #include -namespace Alepha::Hydrogen::Reflection ::detail:: tagged_ctor_size_m +namespace Alepha::Hydrogen::Reflection ::detail:: has_tagged_ctor_m { inline namespace exports {} @@ -82,14 +82,14 @@ namespace Alepha::Hydrogen::Reflection ::detail:: tagged_ctor_size_m namespace exports { template< typename T, typename tag > - constexpr std::size_t has_tagged_ctor_v= has_tagged_ctor< T, tag >::value; + constexpr bool has_tagged_ctor_v= has_tagged_ctor< T, tag >::value; template< typename T, typename tag > struct has_tagged_ctor : std::bool_constant< has_tagged_ctor_v< T, tag > > {}; } } -namespace Alepha::Hydrogen::Reflection::inline exports::inline tagged_ctor_size_m +namespace Alepha::Hydrogen::Reflection::inline exports::inline has_tagged_ctor_m { - using namespace detail::tagged_ctor_size_m::exports; + using namespace detail::has_tagged_ctor_m::exports; } diff --git a/Reflection/tagged_ctor_size.test/0.cc b/Reflection/has_tagged_ctor.test/0.cc similarity index 79% rename from Reflection/tagged_ctor_size.test/0.cc rename to Reflection/has_tagged_ctor.test/0.cc index 67737ab..ffea6cd 100644 --- a/Reflection/tagged_ctor_size.test/0.cc +++ b/Reflection/has_tagged_ctor.test/0.cc @@ -1,6 +1,6 @@ static_assert( __cplusplus > 2020'99 ); -#include +#include #include #include @@ -17,7 +17,7 @@ namespace explicit instance( int a, float b, char c, double d, tag t ); }; - using namespace Alepha::Reflection::exports::tagged_ctor_size_m; + using namespace Alepha::Reflection::exports::has_tagged_ctor_m; static_assert( has_tagged_ctor_v< instance, tag > ); static_assert( not has_tagged_ctor_v< instance, tag2 > ); } diff --git a/Reflection/tagged_ctor_size.test/CMakeLists.txt b/Reflection/has_tagged_ctor.test/CMakeLists.txt similarity index 100% rename from Reflection/tagged_ctor_size.test/CMakeLists.txt rename to Reflection/has_tagged_ctor.test/CMakeLists.txt