diff options
author | Vincent Richard <[email protected]> | 2018-04-01 09:29:07 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2018-04-01 09:29:07 +0000 |
commit | 8564b2f8b0d563a2c328a09916e9e4e3def5978f (patch) | |
tree | f7d2a3022b79f4769dcb3a96c4693f981c764842 /cmake/cmake-cxx11/Modules/CheckCXX11Features/cxx11-test-constexpr.cpp | |
parent | Merge pull request #181 from rusdevops/patch-2 (diff) | |
download | vmime-8564b2f8b0d563a2c328a09916e9e4e3def5978f.tar.gz vmime-8564b2f8b0d563a2c328a09916e9e4e3def5978f.zip |
#193 Dropped support for boot::shared_ptr<>, enabled C++11 support in CMake
Diffstat (limited to 'cmake/cmake-cxx11/Modules/CheckCXX11Features/cxx11-test-constexpr.cpp')
-rw-r--r-- | cmake/cmake-cxx11/Modules/CheckCXX11Features/cxx11-test-constexpr.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/cmake/cmake-cxx11/Modules/CheckCXX11Features/cxx11-test-constexpr.cpp b/cmake/cmake-cxx11/Modules/CheckCXX11Features/cxx11-test-constexpr.cpp deleted file mode 100644 index ed624512..00000000 --- a/cmake/cmake-cxx11/Modules/CheckCXX11Features/cxx11-test-constexpr.cpp +++ /dev/null @@ -1,19 +0,0 @@ -constexpr int square(int x) -{ - return x*x; -} - -constexpr int the_answer() -{ - return 42; -} - -int main() -{ - int test_arr[square(3)]; - bool ret = ( - (square(the_answer()) == 1764) && - (sizeof(test_arr)/sizeof(test_arr[0]) == 9) - ); - return ret ? 0 : 1; -} |