-
- Downloads
[integer sequence] implement backwards compatible version of integer_sequence
C++14 will introduce integer/index sequences in the header <utility>. This patch introduces a backwards compatible implementation similar in use. However, the implementation differs in the following technical details: - index_sequence is not a template alias for integer_sequence but inherits from it - make_{integer, index}_sequence are not a template aliases but free standing functions Both differences stem from the absence of template aliases introduced in GCC aa late as gcc-4.7. This implementation will work in gcc-4.4 and later.
Showing
- dune/common/std/CMakeLists.txt 1 addition, 0 deletionsdune/common/std/CMakeLists.txt
- dune/common/std/Makefile.am 2 additions, 1 deletiondune/common/std/Makefile.am
- dune/common/std/utility.hh 168 additions, 0 deletionsdune/common/std/utility.hh
- dune/common/test/.gitignore 1 addition, 0 deletionsdune/common/test/.gitignore
- dune/common/test/CMakeLists.txt 2 additions, 0 deletionsdune/common/test/CMakeLists.txt
- dune/common/test/Makefile.am 4 additions, 0 deletionsdune/common/test/Makefile.am
- dune/common/test/integersequence.cc 34 additions, 0 deletionsdune/common/test/integersequence.cc
Loading
Please register or sign in to comment