Skip to content

Commit

Permalink
#908 messaging- see if NVCC will play when..
Browse files Browse the repository at this point in the history
- Moving out the first test.. or perhaps even
  yield a better message.
  • Loading branch information
pnstickne committed Jul 6, 2020
1 parent a0ddffd commit 6f72dd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/vt/messaging/message/message_serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ template <class T>
struct has_any_serialize_member_t
{
template <typename U>
static auto test(const U* u) -> decltype(
std::declval<U>().template serialize<SerializeSizerType>(std::declval<SerializeSizerType&>())
static auto test(U* u) -> decltype(
u->template serialize<SerializeSizerType>(std::declval<SerializeSizerType&>())
, char(0)) { return char(0); }
static double test(...) { return 0; }
static const bool value = (sizeof(test((T*)0)) == 1);
Expand All @@ -79,8 +79,7 @@ struct has_own_serialize_member_t : std::false_type {};
template <typename U>
struct has_own_serialize_member_t<U,
std::enable_if_t<
has_any_serialize_member_t<U>::value
and std::is_same<
std::is_same<
void (U::*)(::checkpoint::Sizer&),
decltype(&U::template serialize<SerializeSizerType&>)
>::value
Expand All @@ -93,7 +92,8 @@ struct has_own_serialize_member_t<U,
template <typename T>
static constexpr auto const has_own_serialize =
::checkpoint::SerializableTraits<T>::has_serialize_noninstrusive
or has_own_serialize_member_t<T>::value;
or (has_any_serialize_member_t<U>::value
and has_own_serialize_member_t<T>::value);

#endif

Expand Down

0 comments on commit 6f72dd2

Please sign in to comment.