Enable clang-format
Fix up errors and enable clang-format during CI builds.
Change-Id: I4176b81f8b85a287af9354165e09ff66aeb9fb29
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/src/tupleref.hpp b/src/tupleref.hpp
index c6a6dcd..3e896be 100644
--- a/src/tupleref.hpp
+++ b/src/tupleref.hpp
@@ -17,8 +17,7 @@
namespace detail
{
/** @brief Less than implementation for tuples of references. */
-template <size_t size, size_t i, typename T, typename U>
-struct TupleOfRefsLess
+template <size_t size, size_t i, typename T, typename U> struct TupleOfRefsLess
{
static constexpr bool compare(const T& l, const U& r)
{
@@ -30,7 +29,7 @@
{
return false;
}
- return TupleOfRefsLess < size, i + 1, T, U >::compare(l, r);
+ return TupleOfRefsLess<size, i + 1, T, U>::compare(l, r);
}
};
@@ -49,17 +48,13 @@
struct TupleOfRefsLess
{
template <typename... T, typename... U>
- constexpr bool operator()(
- const TupleOfRefs<T...>& l,
- const TupleOfRefs<U...>& r) const
+ constexpr bool operator()(const TupleOfRefs<T...>& l,
+ const TupleOfRefs<U...>& r) const
{
static_assert(sizeof...(T) == sizeof...(U),
"Cannot compare tuples of different lengths.");
- return detail::TupleOfRefsLess <
- sizeof...(T),
- 0,
- TupleOfRefs<T...>,
- TupleOfRefs<U... >>::compare(l, r);
+ return detail::TupleOfRefsLess<sizeof...(T), 0, TupleOfRefs<T...>,
+ TupleOfRefs<U...>>::compare(l, r);
}
};