Features: Add cxx_defaulted_move_initializers.
This commit is contained in:
parent
c4e672358c
commit
60c0d2dd81
|
@ -62,6 +62,11 @@ The features known to this version of CMake are:
|
||||||
|
|
||||||
.. _N2346: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm
|
.. _N2346: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2346.htm
|
||||||
|
|
||||||
|
``cxx_defaulted_move_initializers``
|
||||||
|
Defaulted move initializers, as defined in N3053_.
|
||||||
|
|
||||||
|
.. _N3053: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3053.html
|
||||||
|
|
||||||
``cxx_delegating_constructors``
|
``cxx_delegating_constructors``
|
||||||
Delegating constructors, as defined in N1986_.
|
Delegating constructors, as defined in N1986_.
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ set(_cmake_feature_test_cxx_user_literals "${GNU47_CXX11}")
|
||||||
# TODO: Should be supported by GNU 4.6
|
# TODO: Should be supported by GNU 4.6
|
||||||
set(GNU46_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
|
set(GNU46_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
|
||||||
set(_cmake_feature_test_cxx_constexpr "${GNU46_CXX11}")
|
set(_cmake_feature_test_cxx_constexpr "${GNU46_CXX11}")
|
||||||
|
set(_cmake_feature_test_cxx_defaulted_move_initializers "${GNU46_CXX11}")
|
||||||
set(_cmake_feature_test_cxx_enum_forward_declarations "${GNU46_CXX11}")
|
set(_cmake_feature_test_cxx_enum_forward_declarations "${GNU46_CXX11}")
|
||||||
set(_cmake_feature_test_cxx_nullptr "${GNU46_CXX11}")
|
set(_cmake_feature_test_cxx_nullptr "${GNU46_CXX11}")
|
||||||
set(_cmake_feature_test_cxx_range_for "${GNU46_CXX11}")
|
set(_cmake_feature_test_cxx_range_for "${GNU46_CXX11}")
|
||||||
|
|
|
@ -52,6 +52,7 @@
|
||||||
F(cxx_decltype_incomplete_return_types) \
|
F(cxx_decltype_incomplete_return_types) \
|
||||||
F(cxx_default_function_template_args) \
|
F(cxx_default_function_template_args) \
|
||||||
F(cxx_defaulted_functions) \
|
F(cxx_defaulted_functions) \
|
||||||
|
F(cxx_defaulted_move_initializers) \
|
||||||
F(cxx_delegating_constructors) \
|
F(cxx_delegating_constructors) \
|
||||||
F(cxx_deleted_functions) \
|
F(cxx_deleted_functions) \
|
||||||
F(cxx_enum_forward_declarations) \
|
F(cxx_enum_forward_declarations) \
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
struct A
|
||||||
|
{
|
||||||
|
A() = default;
|
||||||
|
A& operator=(A&&) = default;
|
||||||
|
A(A&&) = default;
|
||||||
|
};
|
Loading…
Reference in New Issue