Skip to content
Snippets Groups Projects
Commit fcc41366 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Merge branch 'feature/constexpr-unpack-integer-sequence' into 'master'

Allow constant expressions in unpackIntegerSequence

See merge request !996
parents 9d226586 be013156
Branches
Tags
1 merge request!996Allow constant expressions in unpackIntegerSequence
Pipeline #39840 passed
Pipeline: Dune Nightly Test

#39841

    ......@@ -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>()...);
    }
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment