
29 Apr
2010
29 Apr
'10
5:25 a.m.
On Wed, Apr 28, 2010 at 7:21 PM, Stefan <mstefanro@gmail.com> wrote:
You may want to extend this by adding support for get(any*) and get(any const*).
Good catch.
Also, for making them usable interchangeably via boost::get, you need them to throw the same exception. Therefore, in case you are using boost::any, you probably want to rethrow bad_any_cast to bad_get.
Is bad_get used by any other boost::get than the one of boost::variant? If not, I think sticking to the libraries 'native' exceptions is OK. Is there any interest in adding this to boost.any? From the boost documenation page it seems that Kevlin Henney is the maintainer. Should I contact him personally or raise a trac ticket? Best regards, Christoph