Skip to content

Enable C++11 on posix.#41

Merged
psychonic merged 3 commits intomasterfrom
c++11
Jun 20, 2014
Merged

Enable C++11 on posix.#41
psychonic merged 3 commits intomasterfrom
c++11

Conversation

@psychonic
Copy link
Member

Since building with msvc12 on Windows now, support for C++11 is already enabled there implicitly.

This set of commits enables it for Linux and Mac. I tested with the Clang 3.4 on our Linux build VM.

-Wno-deprecated-register is added since the "register" keyword used in some of the SDKs is deprecated in C++11.

-Wno-implicit-exception-spec-mismatch is added for our delete and delete[] overrides.
Without it, when building with C++ enabled, the warning is thrown (at least on linux with gcc 4.7 C++ headers) due to those functions being defined in the headers with _GLIBCXX_USE_NOEXCEPT. I don't know how portable that is - if we can just add it to our versions if linux is defined so I silenced the warning/error. We can always adjust things later if necessary.

@dvander
Copy link
Member

dvander commented Jun 20, 2014

🐑 it!

psychonic added a commit that referenced this pull request Jun 20, 2014
Enable C++11 on posix (r=dvander).
@psychonic psychonic merged commit 2107599 into master Jun 20, 2014
@psychonic psychonic deleted the c++11 branch June 20, 2014 01:38
dvander added a commit that referenced this pull request Nov 4, 2015
Remove more unused opcodes.
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

Successfully merging this pull request may close these issues.

2 participants