-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy pathREADME.txt
31 lines (22 loc) · 951 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Tested C++ feauture:
- auto
- const iterator
- lambda calculas
- new for loop (foreach)
In Visual Studio 2010, you can use:
- auto
- const iterator
- lambda calculas
without any setup, see CMakeLists.txt for further information.
-------------------------------------------------------------
C++11 support can't be covered in a simple and elegant CMakeLists.txt,
you I won't continue test C++11 features here further. These links may
be useful:
- <http://stackoverflow.com/questions/10851247/how-to-activate-c-11-in-cmake>
- <http://stackoverflow.com/questions/10984442/how-to-detect-c11-support-of-a-compiler-with-cmake/20165220>
My advice is:
- don't use `for( int i, v )' feature
- be conservative, use lambda, const iterator, auto is pretty much enough
- for VS2010 project, check
<https://github.com/district10/cmake-templates/tree/master/cpp11_vs2010>
- for Linux GNUMake, this CMakeList.txt works fine