[graph] 'short' in bundled property throws boost::bad_any_cast

Hi, 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.

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@gmail.com

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@gmail.com _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Andrew Sutton
-
remi.chateauneu@gmx.de