Skip to content

Commit

Permalink
Restricted use of void_t to C++17 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
RaiqaRasool authored and nathanwbrei committed May 28, 2024
1 parent 55d914d commit 85e2499
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libraries/JANA/Utils/JTypeInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace JTypeInfo {


#if __cplusplus >= 201703L
template <typename, typename=void>
struct is_parseable : std::false_type {};

Expand All @@ -24,6 +24,7 @@ struct is_serializable : std::false_type {};

template <typename T>
struct is_serializable<T, std::void_t<decltype(std::declval<std::ostream>() << std::declval<T>())>> : std::true_type {};
#endif


template<typename T>
Expand Down

0 comments on commit 85e2499

Please sign in to comment.