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

Generally use c++11 features #26

Closed
csoeger opened this issue Apr 23, 2015 · 4 comments
Closed

Generally use c++11 features #26

csoeger opened this issue Apr 23, 2015 · 4 comments
Labels

Comments

@csoeger
Copy link
Member

csoeger commented Apr 23, 2015

Should we start using the "new" c++11 features?

Thinks that might be usefuI:

  • auto
  • for_each, ...
  • constexpr
  • static_assert
  • initializer lists
@w-bruns
Copy link
Contributor

w-bruns commented Apr 23, 2015

I think it is a good idea.

Winfried

@csoeger
Copy link
Member Author

csoeger commented Apr 28, 2015

Most of the mentioned features are included in the most common compiler for several years now, so I think it is no problem to use them. Only the constexpr support does not seem to be widespread, we should not use it for now.

@csoeger csoeger closed this as completed Apr 28, 2015
@csoeger
Copy link
Member Author

csoeger commented Jun 4, 2015

List of supported features for different compilers and when it was introduced:
gcc https://gcc.gnu.org/projects/cxx0x.html
clang http://clang.llvm.org/cxx_status.html
intel https://software.intel.com/en-us/articles/c0x-features-supported-by-intel-c-compiler

@csoeger
Copy link
Member Author

csoeger commented Sep 3, 2015

We now use the following features witch work with the following compiler versions (according to their web pages)

  • long long (gcc 4.3, clang 2.9, icc 11.1)
  • static_assert (gcc 4.3, clang 2.9, icc 11.1)
  • auto (gcc 4.4, clang 2.9, icc 12.0)
  • std::execption_ptr (gcc 4.4, clang 2.9, icc 12.0)

We really want to use the std::exception_ptr, so our minimal requirements are:
gcc 4.4
clang 2.9
icc 12.0
We should try to keep it to this requirements for now.

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

No branches or pull requests

2 participants