[dune-functions] [Dune-functions-commit] [Commit] dune-functions - 0d929aa: Add staticForLoop
Christian Engwer
christian.engwer at uni-muenster.de
Wed Sep 23 23:07:28 CEST 2015
On Wed, Sep 23, 2015 at 11:04:32PM +0200, Carsten Gräser wrote:
> Am 23.09.2015 um 14:28 schrieb Steffen Müthing:
> >
> >> Am 23.09.2015 um 14:23 schrieb Christian Engwer <christian.engwer at uni-muenster.de>:
> >>
> >> typetree for the time being:-)
> >
> > And we all wait for C++17 and fold expressions… ;-)
> But even without generic lambdas this is a major improvement:
>
> Having ForLoop<T,begin,end> looping over begin...end
> end not begin...(end-1) comes really surprising. And
> may lead to really ugly errors.
That is true, but the surprise issue could be fixed with proper
naming, e.g ForLoop<T,first,last> ... similar to the stl naming.
Christian
More information about the dune-functions
mailing list