Boost logo

Boost :

Subject: Re: [boost] [graph] 'short' in bundled property throws boost::bad_any_cast
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2008-11-30 07:52:16


> I have a graph with a bundled property whose one of the members is a
> 'short'. When calling read_graphml, it throws an exception:
>
> terminate called after throwing an instance of
> 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_any_cast>
> >'
> what(): boost::bad_any_cast: failed conversion using boost::any_cast
>
> Same problem with 'unsigned short'. With 'int' and 'long', it works.
>

It's probably a missed specialization in dynamic_properties. If you file a
ticket for it on svn.boost.org, I can take a look at it this week.

Andrew Sutton
andrew.n.sutton_at_[hidden]


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk