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:
- To support its non-standard
operator==
, it requires the held type to always have anoperator==
- 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