Beautification and optimization

This commit is contained in:
Patrick Urbanke
2023-10-02 22:15:31 +02:00
parent 656929f6e2
commit a3f693c5e8
5 changed files with 32 additions and 23 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ class NamedTuple {
template <class... TupContent, class... Tail>
auto add(const std::tuple<TupContent...>& _tuple, Tail&&... _tail) const {
if constexpr (sizeof...(Tail) > 0) {
return add_tuple(std::forward<std::tuple<TupContent...>>(_tuple),
return add_tuple(_tuple,
std::make_index_sequence<sizeof...(TupContent)>{})
.replace(_tail...);
} else {