Permalink
Browse files

Eliminated helper template argument from (de)-serialize methods

* std::enable_if was moved into a unnamed default template argument
* return type is now declared in a straight forward manner
  • Loading branch information...
KnairdA committed Jan 5, 2014
1 parent 0d4fda0 commit ed85e10cf43767576141d94f2b86f3cc1eda9dfb
Showing with 10 additions and 10 deletions.
  1. +10 −10 src/tuple/tuple.h
@@ -63,23 +63,23 @@ class Tuple {

template <
typename CustomOrder,
typename Helper = Endianess
typename = typename std::enable_if<
std::is_same<UndefinedEndian, Endianess>::value,
void
>::type
>
inline typename std::enable_if<
std::is_same<UndefinedEndian, Helper>::value,
void
>::type serialize() {
inline void serialize() {
Serializer<InPlaceSorter<CustomOrder>>::serialize(this->tuple_);
}

template <
typename CustomOrder,
typename Helper = Endianess
typename = typename std::enable_if<
std::is_same<UndefinedEndian, Endianess>::value,
void
>::type
>
inline typename std::enable_if<
std::is_same<UndefinedEndian, Helper>::value,
void
>::type deserialize() {
inline void deserialize() {
Serializer<InPlaceSorter<CustomOrder>>::deserialize(this->tuple_);
}

0 comments on commit ed85e10

Please sign in to comment.