byzhang / rapidjson

Automatically exported from code.google.com/p/rapidjson
MIT License
0 stars 0 forks source link

Problem with method name Null and Bool #95

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Writer& Null()                          { Prefix(kNullType);   
WriteNull();            return *this;             }
Writer& Bool(bool b)                    { Prefix(b ? kTrueType : kFalseType); 
WriteBool(b); return *this; }

These two are causing compiletime errors  (GCC 4.7.2)
Renaming all occurences of "Bool" and "Null" solves this problem.

Original issue reported on code.google.com by charlesd...@gmail.com on 4 Jan 2014 at 11:07

GoogleCodeExporter commented 9 years ago
Can you provide the error message?
Can the unit tests or examples reproduce this?
I suspect there are some macro naming Null and Bool.

Original comment by milo...@gmail.com on 30 Jun 2014 at 4:57