Boost logo

Boost Users :

Subject: Re: [Boost-users] Property Tree with boost:any
From: Olivier Tristan (o.tristan_at_[hidden])
Date: 2012-12-11 12:24:53


On 12/11/2012 5:39 PM, Sebastian Redl wrote:
> 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.
>
>
I see.

Thanks for the info !

-- 
UVI <http://www.uvi.net/>
Olivier Tristan| Research & Development
o.tristan_at_[hidden]
Facebook <http://www.facebook.com/UVI.Official> Twitter 
<http://twitter.com/UVIofficial> Youtube 
<http://www.youtube.com/user/UVIofficial> SoundCloud 
<http://soundcloud.com/uvi-official> Blog UVI <http://blog.uvi.net/>



UVI.jpg
UVI_FB.jpg
UVI_TW.jpg
UVI_YT.jpg
UVI_SC.jpg
UVI_BLOG.jpg

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