Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Trilinos
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 936
    • Issues 936
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • James Willenbring
  • Trilinos
  • Issues
  • #1377

Closed
Open
Created Jun 01, 2017 by James Willenbring@jmwilleMaintainer

Teuchos: Teuchos::any requires too many operators

Created by: ibaned

While working on #1371 (closed), I'm having a tough time using Teuchos::any because:

  1. To support its non-standard operator==, it requires the held type to always have an operator==
  2. To support its non-standard print functionality, it requires the held type to always work with operator<< into a stream

This really limits what can be put into Teuchos::any, and I'd like to use it in the TeuchosParser interface in a way that users can put literally any type they want into it, but thats going to be a tough sell if they need to define operator== and operator<< for all such types.

This applies to non-user types too, I'm looking at having to define operator<< for std::set<char>....

I'd really like to cut back on these requirements, but they seem to be used in Teuchos::ParameterList to implement its own operator== and operator<<....

@bartlettroscoe

Assignee
Assign to
Time tracking