Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 426
    • Issues 426
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1827
Closed
Open
Issue created Sep 02, 2020 by Mark OLESEN@markMaintainer

use default template parameter for Tuple2

Could change declaration of Tuple2 to this:

template<class T1, class T2 = T1>
class Tuple2
{
...
}:

This would make it simpler, less verbose to use something like Tuple2<label> instead of Tuple2<label, label> for places where we would normally use Pair<label> but don't want the automatic binary output associated with Pair (inherited from FixedList).

Alternative? Derive Pair from Tuple2 ... not sure about that one.

Edited Sep 02, 2020 by Mark OLESEN
Assignee
Assign to
Time tracking