gason icon indicating copy to clipboard operation
gason copied to clipboard

Cannot compile gason.cpp on Visual Studio 2012 C++

Open Alexk12 opened this issue 9 years ago • 1 comments

This code does not compile in MS Visual Studio 2012 C++: inline JsonIterator begin(JsonValue o) { return JsonIterator{o.toNode()}; }

(Compiled OK in MS Viaual Studio 2015 Community + Update 1, but I use VS 2012 C++ for my project as VS 2015 Community is buggy.)

Can you please fix it or can you describe how to fix it by myself to compile it on VS 2012?

Best regards, Alexander

P.S. And please replace one known 3-letter Russian word from test-suite.cpp, bad style and "plokhaya primeta, programma budet plokho rabotat'" .

Alexk12 avatar Dec 27 '15 20:12 Alexk12

Maybe this fix the problem:

inline JsonIterator begin(JsonValue o) {
    JsonIterator it;
    it.p = o.toNode();
    return it;
}

btw gason can compile in vs2013, early versions as I know.

vivkin avatar Jan 07 '16 14:01 vivkin