|
Boost Users : |
Subject: Re: [Boost-users] Property Tree with boost:any
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2012-12-11 11:39:07
On 11.12.2012, at 16:35, Olivier Tristan wrote:
> Hello,
>
> I'm trying to use a property tree with a boost::any like in custom_data_type.cpp from the examples folder.
> So far, so good.
>
> My only issue arise when I'm trying to use write_json from json_parser.
> I understand that boost::any do not provide direct conversion to something that can be written into a stream, but I was wondering if there is a way to provide some conversion function
> just like it's done for get and put inside the property tree itself.
json_parser was never really designed to work with anything but basic_string ptrees, and it shows. I have an open bug about using it with variant too.
So the answer is no, there currently isn't such a thing.
Sebastian
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net