Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Aug 28, 2024
1 parent a97f1e8 commit 108f950
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions include/flatmemory/details/types/tuple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,9 @@ class View<Tuple<Ts...>>
*/

template<typename T>
auto get_element(uint8_t* buf)
{
static_assert(std::false_type::value, "View<Tuple<Ts...>>::get_element(...): Expected usage of overload.");
}
auto get_element(uint8_t* buf);
template<typename T>
auto get_element(const uint8_t* buf) const
{
static_assert(std::false_type::value, "View<Tuple<Ts...>>::get_element(...): Expected usage of overload.");
}
auto get_element(const uint8_t* buf) const;

template<IsTriviallyCopyable T>
T get_element(uint8_t* buf)
Expand Down Expand Up @@ -312,10 +306,7 @@ class ConstView<Tuple<Ts...>>
*/

template<typename T>
auto get_element(const uint8_t* buf) const
{
static_assert(std::false_type::value, "ConstView<Tuple<Ts...>>::get_element(...): Expected usage of overload.");
}
auto get_element(const uint8_t* buf) const;

template<IsTriviallyCopyable T>
T get_element(const uint8_t* buf) const
Expand Down

0 comments on commit 108f950

Please sign in to comment.