library for type erasure

AMDG Is there any interest in a library for type erasure? My basic idea is to define each operation separately and use a sequence of them. As a simple example: void f() { erasure<boost::mpl::vector<ostreamable, incrementable> > object(0); ++object; std::cout << object; //prints 1 } In Christ, Steven Watanabe

On Jul 27, 2006, at 4:36 PM, Steven Watanabe wrote:
AMDG
Is there any interest in a library for type erasure? My basic idea is to define each operation separately and use a sequence of them. As a simple example:
void f() { erasure<boost::mpl::vector<ostreamable, incrementable> > object (0); ++object; std::cout << object; //prints 1 }
I'm sure there's interest. Alexander Nasonov was working on a "dynamic_any" library with a similar approach. Doug

Doug Gregor wrote:
On Jul 27, 2006, at 4:36 PM, Steven Watanabe wrote: I'm sure there's interest. Alexander Nasonov was working on a "dynamic_any" library with a similar approach.
Doug, thanks for the reply. I missed this message. Steven, do you have a document that describes your approach in more details? Does it support multimethods for binary operations? -- Alexander Nasonov
participants (3)
-
Alexander Nasonov
-
Doug Gregor
-
Steven Watanabe