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

What is C++ version for cocos? #19069

Open
v1993 opened this issue Sep 21, 2018 · 4 comments
Open

What is C++ version for cocos? #19069

v1993 opened this issue Sep 21, 2018 · 4 comments

Comments

@v1993
Copy link
Contributor

v1993 commented Sep 21, 2018

I want to do some contribution to cocos2d-x, but not sure about using std::make_unique.

Is it ok to use c++14 or not?

@drelaptop
Copy link
Contributor

drelaptop commented Sep 25, 2018

All the build with c++11 standard for now. No c++14 feature was used.

is the c++ 14 feature supported well by compilers, included android NDK & GCC ?

@v1993
Copy link
Contributor Author

v1993 commented Sep 25, 2018

I even use C++17 which is 100% supported by android and linux. Most probably by windows and apple OSes too. We will have to replace some things in build files.

@drelaptop Can you check it or I'll have to do pull request by myself? I'm quite busy now, so one or two month later.

@drelaptop
Copy link
Contributor

refer to https://en.cppreference.com/w/cpp/compiler_support , we can found 99% of the C++14 features was supported by GCC & Clang & MSVC .

if we decide to update from C++ 11 to C++ 14,developer will need update GCC 4.9 to 5.0+, VS2015 to VS2017. So do we need it? I invite @minggo @PatriceJiang to share options.

@minggo
Copy link
Contributor

minggo commented Sep 26, 2018

If C++ 14 is well supported, i think it is ok to update to it. But it is not urgent, we can support it in next version(the version after 3.18).

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

3 participants