Skip to content
Snippets Groups Projects

Allow constant expressions in unpackIntegerSequence

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -120,7 +120,7 @@ namespace Dune
* \returns Result of calling f with unpacked integers.
*/
template<class F, class I, I... i>
decltype(auto) unpackIntegerSequence(F&& f, std::integer_sequence<I, i...> sequence)
decltype(auto) constexpr unpackIntegerSequence(F&& f, std::integer_sequence<I, i...> sequence)
{
return f(std::integral_constant<I, i>()...);
}
Loading