Boost logo

Boost :

Subject: Re: [boost] [graph] 'short' in bundled property throws boost::bad_any_cast
From: remi.chateauneu_at_[hidden]
Date: 2008-12-04 16:48:21


Done. Ticket #2566

There are problems too when the property is a string and contains
characters such as '<' or '>': It is impossible to read such a XML file
because the parser thinks they are beginning of XML tags. I created the
ticket 2567 for this.

Andrew Sutton wrote:
>> 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]
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
>


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