Boost logo

Boost Users :

Subject: Re: [Boost-users] Compiler crash with Phoenix and PropertyTree.
From: Joel de Guzman (joel_at_[hidden])
Date: 2009-12-15 07:32:45

Surya Kiran Gullapalli wrote:
> On Tue, Dec 15, 2009 at 14:15, Sebastian Redl
> <sebastian.redl_at_[hidden] <mailto:sebastian.redl_at_[hidden]>>
> wrote:
> Surya Kiran Gullapalli wrote:
> Hello all,
> I'm seeing a compiler crash (MSVC 8.0) with the following piece
> of code. I'm using Boost.Phoenix along with Boost.PropertyTree
> namespace pt = boost::property_tree ;
> pt::ptree tree ;
> boost::phoenix::bind (&pt::ptree::put<string, bool>, tree,
> string("Temp.Flag"), true) ;
> With Gcc-4.2.2 , compilation fails with errors.
> <>I tried to sift thru the error log, but
> overwhelmed with the number of errors.

Well, this is your error:

error: request for member 'put_value' in 'tr', which is of non-class type 'bool'

Alas, I do not know enough of property_tree to know. I could help you more
if you post a minimal cpp file I can try. What do you want to do BTW?


Joel de Guzman
Meet me at BoostCon

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at