Skip to content
Snippets Groups Projects
Forked from Core Modules / dune-common
Source project has a limited visibility.
  • Martin Nolte's avatar
    df037802
    [bugfix] make AddRefTypeEvaluator work in tranformTuple · df037802
    Martin Nolte authored
    As documented, tranformTuple should support AddRefTypeEvaluator. As
    std::make_tuple will remove references (using std::decay) from the
    funtor's return type, the returned tuple would contain copies of the
    values. This is not the intended behavior.
    
    This patch adds AddRefTypeEvaluator to the utilitytest and fixes the
    return type of transformTuple.
    df037802
    History
    [bugfix] make AddRefTypeEvaluator work in tranformTuple
    Martin Nolte authored
    As documented, tranformTuple should support AddRefTypeEvaluator. As
    std::make_tuple will remove references (using std::decay) from the
    funtor's return type, the returned tuple would contain copies of the
    values. This is not the intended behavior.
    
    This patch adds AddRefTypeEvaluator to the utilitytest and fixes the
    return type of transformTuple.