3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 22:03:43 +01:00

Fix const in apply_on_tuple

This commit is contained in:
Olivier Parcollet 2014-01-06 12:12:12 +01:00
parent 1ecec0b933
commit 53b05ad899

View File

@ -175,7 +175,7 @@ namespace triqs { namespace tuple {
}; };
template<typename F, typename T1> template<typename F, typename T1>
auto apply_on_tuple (F && f,T1 && t1) DECL_AND_RETURN( apply_on_tuple_impl<std::tuple_size<typename std::remove_reference<T1>::type>::value-1>()(std::forward<F>(f),std::forward<T1>(t1))); auto apply_on_tuple (F && f,T1 && t1) DECL_AND_RETURN( apply_on_tuple_impl<std::tuple_size<typename std::remove_const<typename std::remove_reference<T1>::type>::type>::value-1>()(std::forward<F>(f),std::forward<T1>(t1)));
/** /**
* apply_on_zip(f, t1,t2) * apply_on_zip(f, t1,t2)