|
Boost : |
Subject: Re: [boost] [any] Multimethod for boost::any and modified boost::any to fit multi method
From: Nowake (nowake_at_[hidden])
Date: 2009-02-12 10:35:24
> Is your solution constant-time?
No. It cannot dispatch constant-time with boost::any.
So I make "Holder" class to dispatch constant-time.
Holder is similar to boost::any, but it have "id" method that can return
unique integer from each content type.
And Multimethod can dispatch method in constant-time using this "id"
integer.
Regards.
Nowake
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk