Description
Hi, thank you for this great library.
However, I have an issue when I try to use nvcc to compile an application:
I am on your 0.10.6 branch.
I have a file that includes the amalagated json.h header, which is compiled by nvcc-7.5 with gcc-4.9 as the backend compiler. I then get the following error message
~/include/json/json.h:571:16: error: ‘class Json::Value::CZString’ is private
class CZString {
^
~/include/json/json.h:1099:49: error: within this context
explicit ValueConstIterator(const Value::ObjectValues::iterator& current);
^
~/include/json/json.h:571:16: error: ‘class Json::Value::CZString’ is private
class CZString {
^
~/include/json/json.h:1150:44: error: within this context
explicit ValueIterator(const Value::ObjectValues::iterator& current);
I don't really know what to make of it. In any application that includes json.h and I compile with gcc-4.9 I don't get any errors. If I compile with nvcc with icc-14.0.2 as the backend I get the same message but as a warning instead of an error
~/include/json/json.h(1099): warning #525: class "Json::Value::CZString" (declared at line 571) is an inaccessible type (allowed for cfront compatibility)
private: explicit ValueConstIterator(const std::_Rb_tree_iterator< std::pair< const Value::CZString, Value> > & current);
^
~/include/json/json.h(1150): warning #525: class "Json::Value::CZString" (declared at line 571) is an inaccessible type (allowed for cfront compatibility)
private: explicit ValueIterator(const std::_Rb_tree_iterator< std::pair< const Value::CZString, Value> > & current);
^
Again json.h doesn't cause trouble in any project I compile solely with icc-14.0.2.
Any ideas? I'm a bit at a loss if it's an nvcc problem or a problem with the code. I'd appreciate your help.
best
Matthias