Boost logo

Boost Users :

Subject: Re: [Boost-users] [property_tree] Compilation Problem when #including <boost/property_tree/json_parser.hpp>
From: Adi Shavit (adishavit_at_[hidden])
Date: 2014-02-12 01:58:42


>
> It seems that somewhere inside the #include hierarchy the symbol ERROR
>> is #defined to cause this code to fail.
>> Renaming ERROR to something else avoids this problem.
>>
>
> I do not know where ERROR is occuring. But it is certainly not a good idea
> to have an enumeration name be a common all-uppercase name.
>
>
That's true. But still, having commonly named MACROs introduced by a
3rd-party header is even less ideal.
Adi



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