Skip to content

Commit

Permalink
Make is_bt_tuple constexpr variables inline
Browse files Browse the repository at this point in the history
Silence clang misc-definitions-in-headers warnings about it.
  • Loading branch information
jagerman committed Feb 10, 2021
1 parent 506bd65 commit f9ef827
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oxenmq/bt_serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,11 @@ template <typename S, typename T>
struct bt_deserialize<std::pair<S, T>> : bt_deserialize_tuple<std::pair, S, T> {};

template <typename T>
constexpr bool is_bt_tuple = false;
inline constexpr bool is_bt_tuple = false;
template <typename... T>
constexpr bool is_bt_tuple<std::tuple<T...>> = true;
inline constexpr bool is_bt_tuple<std::tuple<T...>> = true;
template <typename S, typename T>
constexpr bool is_bt_tuple<std::pair<S, T>> = true;
inline constexpr bool is_bt_tuple<std::pair<S, T>> = true;


template <typename T>
Expand Down

0 comments on commit f9ef827

Please sign in to comment.