|
Boost : |
From: Jesse Jones (jejones_at_[hidden])
Date: 2000-08-30 18:52:05
>I have uploaded code, tests and docs for a variant value type,
>boost::any, that holds values of arbitrary type:
It's very cool. :-) A few comments:
1) I really hate implicit conversion operators. I think it'd be better to
use something like is_valid or empty instead.
2) I think all the type_info stuff can be replaced with a single
dynamic_cast in to_ptr.
3) to_ptr seems like it would be better off as an internal method that
clients shouldn't call.
4) The name copy_to is a bit clumsy. get would seem pretty reasonable.
-- Jesse
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk