Skip to content

Commit

Permalink
fix musllinux
Browse files Browse the repository at this point in the history
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
  • Loading branch information
mgovers committed Jun 20, 2023
1 parent b813681 commit e5a81fd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ struct DataAttribute {
CompareValueFunc compare_value;
};

template <class Base, auto member_ptr>
requires std::is_same_v<Base, typename trait_pointer_to_member<decltype(member_ptr)>::struct_type>
template <class Base, auto member_ptr,
std::enable_if_t<std::is_same_v<Base, typename trait_pointer_to_member<decltype(member_ptr)>::struct_type>>>
inline size_t get_offset() {
using struct_type = typename trait_pointer_to_member<decltype(member_ptr)>::struct_type;
struct_type const obj{};
Expand All @@ -147,8 +147,8 @@ constexpr bool is_little_endian() {
return std::endian::native == std::endian::little;
}

template <class Base, auto member_ptr>
requires std::is_same_v<Base, typename trait_pointer_to_member<decltype(member_ptr)>::struct_type>
template <class Base, auto member_ptr,
std::enable_if_t<std::is_same_v<Base, typename trait_pointer_to_member<decltype(member_ptr)>::struct_type>>>
inline DataAttribute get_data_attribute(std::string const& name) {
using value_type = typename trait_pointer_to_member<decltype(member_ptr)>::value_type;
using single_data_type = data_type<value_type>;
Expand Down

0 comments on commit e5a81fd

Please sign in to comment.