Skip to content
Snippets Groups Projects
Forked from Core Modules / dune-common
Source project has a limited visibility.
  • Steffen Müthing's avatar
    732ca75c
    [ForLoop] Port ForLoop TMP to C++11 · 732ca75c
    Steffen Müthing authored
    The ForLoop TMP used to put a number of restrictions on the arguments to
    apply(), mainly due to the limited capabilities of C++01 wrt. to
    argument forwarding.
    
    But now we have C++11, so we can throw away all that awkward code and
    replace it with a single forwarding function that supports arbitrary
    numbers of arbitrary combinations of lvalues and rvalues - all hail
    variadic templates and perfect forwarding!
    732ca75c
    History
    [ForLoop] Port ForLoop TMP to C++11
    Steffen Müthing authored
    The ForLoop TMP used to put a number of restrictions on the arguments to
    apply(), mainly due to the limited capabilities of C++01 wrt. to
    argument forwarding.
    
    But now we have C++11, so we can throw away all that awkward code and
    replace it with a single forwarding function that supports arbitrary
    numbers of arbitrary combinations of lvalues and rvalues - all hail
    variadic templates and perfect forwarding!