Skip to content

Commit

Permalink
Test MSVC compiler fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Whitlock committed Sep 23, 2024
1 parent 2b44211 commit 8b1eb41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/checkpoint/serializers/serializer_ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ struct SerializerRef
static constexpr bool has_not_any_traits_v = has_not_any_traits<Traits...>::value;

template<typename... Traits>
using has_traits_t = typename std::enable_if_t<has_traits_v<Traits...>>;
using has_traits_t = std::enable_if_t<has_traits_v<Traits...>>;
template<typename... Traits>
using has_any_traits_t = typename std::enable_if_t<has_any_traits_v<Traits...>>;
using has_any_traits_t = std::enable_if_t<has_any_traits_v<Traits...>>;
template<typename... Traits>
using has_not_traits_t = typename std::enable_if_t<has_not_traits_v<Traits...>>;
using has_not_traits_t = std::enable_if_t<has_not_traits_v<Traits...>>;
template<typename... Traits>
using has_not_any_traits_t = typename std::enable_if_t<has_not_any_traits_v<Traits...>>;
using has_not_any_traits_t = std::enable_if_t<has_not_any_traits_v<Traits...>>;


//Helpers for converting between traits
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_user_traits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ struct UserObjectA {

template<
typename SerT,
typename = typename std::void_t<typename SerT::template has_traits_t<CheckpointTraitNonintrusive>>
typename SerT::template has_traits_t<CheckpointTraitNonintrusive>* = nullptr
>
void serialize(SerT& s, UserObjectA& obj){
s | obj.name;
Expand All @@ -104,7 +104,7 @@ void serialize(SerT& s, UserObjectA& obj){
namespace CheckpointNamespace {
template<
typename SerT,
typename = typename std::void_t<typename SerT::template has_traits_t<CheckpointTraitNamespaced>>
typename SerT::template has_traits_t<CheckpointTraitNamespaced>* = nullptr
>
void serialize(SerT& s, UserObjectA& obj){
s | obj.name;
Expand Down

0 comments on commit 8b1eb41

Please sign in to comment.