Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Alexk12 opened this issue Dec 27, 2015 · 1 comment
Open

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

Alexk12 opened this issue Dec 27, 2015 · 1 comment

Comments

@Alexk12
Copy link

Alexk12 commented Dec 27, 2015

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'" .

@vivkin
Copy link
Owner

vivkin commented Jan 7, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants