Skip to content

Commit

Permalink
fix for_each
Browse files Browse the repository at this point in the history
  • Loading branch information
dimak24 committed May 18, 2019
1 parent eba3b43 commit 07995e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysdsl/util/tupletricks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ decltype(auto) for_each(const std::tuple<T...>& t, Function&& f) {

template<typename... T, typename Function>
constexpr
decltype(auto) for_each(std::tuple<T...>&& t, Function&& f) {
decltype(auto) for_each(std::tuple<T...>& t, Function&& f) {
return for_each_impl(t, f, std::index_sequence_for<T...>{}); }

template<typename P, typename Function, std::size_t... Is>
Expand Down Expand Up @@ -58,7 +58,7 @@ decltype(auto) for_each_in_tuple(const std::tuple<Ts...> &t, F f) {

template <typename... Ts, typename F>
constexpr
decltype(auto) for_each_in_tuple(std::tuple<Ts...> &&t, F f) {
decltype(auto) for_each_in_tuple(std::tuple<Ts...> &t, F f) {
return detail::for_each(t, f); }

template <typename... Ts, typename F>
Expand Down

0 comments on commit 07995e7

Please sign in to comment.