Features: Add cxx_deleted_functions.

This commit is contained in:
Stephen Kelly 2014-04-03 00:15:53 +02:00
parent 91f3699000
commit ac3a1b14c0
4 changed files with 13 additions and 0 deletions

View File

@ -37,6 +37,11 @@ The features known to this version of CMake are:
.. _N1986: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1986.pdf .. _N1986: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1986.pdf
``cxx_deleted_functions``
Deleted functions, as defined in N2346_.
.. _N2346: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm
``cxx_final`` ``cxx_final``
Override control ``final`` keyword, as defined in N2928_. Override control ``final`` keyword, as defined in N2928_.

View File

@ -19,6 +19,7 @@ set(_cmake_feature_test_cxx_constexpr "${GNU46_CXX11}")
set(GNU44_CXX11 "${_oldestSupported} && __cplusplus >= 201103L") set(GNU44_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
set(_cmake_feature_test_cxx_auto_type "${GNU44_CXX11}") set(_cmake_feature_test_cxx_auto_type "${GNU44_CXX11}")
set(_cmake_feature_test_cxx_defaulted_functions "${GNU44_CXX11}") set(_cmake_feature_test_cxx_defaulted_functions "${GNU44_CXX11}")
set(_cmake_feature_test_cxx_deleted_functions "${GNU44_CXX11}")
set(_cmake_feature_test_cxx_strong_enums "${GNU44_CXX11}") set(_cmake_feature_test_cxx_strong_enums "${GNU44_CXX11}")
set(_cmake_feature_test_cxx_trailing_return_types "${GNU44_CXX11}") set(_cmake_feature_test_cxx_trailing_return_types "${GNU44_CXX11}")
set(_cmake_feature_test_cxx_variadic_templates "${GNU44_CXX11}") set(_cmake_feature_test_cxx_variadic_templates "${GNU44_CXX11}")

View File

@ -47,6 +47,7 @@
F(cxx_decltype) \ F(cxx_decltype) \
F(cxx_defaulted_functions) \ F(cxx_defaulted_functions) \
F(cxx_delegating_constructors) \ F(cxx_delegating_constructors) \
F(cxx_deleted_functions) \
F(cxx_final) \ F(cxx_final) \
F(cxx_override) \ F(cxx_override) \
F(cxx_static_assert) \ F(cxx_static_assert) \

View File

@ -0,0 +1,6 @@
struct A
{
A(const A&) = delete;
A& operator=(const A&) = delete;
};