Features: Add cxx_rvalue_references.
This commit is contained in:
parent
b1c5bd5314
commit
3300f78310
@ -97,6 +97,11 @@ The features known to this version of CMake are:
|
|||||||
|
|
||||||
.. _N2439: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2439.htm
|
.. _N2439: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2439.htm
|
||||||
|
|
||||||
|
``cxx_rvalue_references``
|
||||||
|
R-value references, as defined in N2118_.
|
||||||
|
|
||||||
|
.. _N2118: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html
|
||||||
|
|
||||||
``cxx_static_assert``
|
``cxx_static_assert``
|
||||||
Static assert, as defined in N1720_.
|
Static assert, as defined in N1720_.
|
||||||
|
|
||||||
|
@ -47,5 +47,6 @@ set(_cmake_feature_test_cxx_variadic_templates "${GNU44_CXX11}")
|
|||||||
# TODO: Should be supported by GNU 4.3
|
# TODO: Should be supported by GNU 4.3
|
||||||
set(GNU43_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
|
set(GNU43_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
|
||||||
set(_cmake_feature_test_cxx_decltype "${GNU43_CXX11}")
|
set(_cmake_feature_test_cxx_decltype "${GNU43_CXX11}")
|
||||||
|
set(_cmake_feature_test_cxx_rvalue_references "${GNU43_CXX11}")
|
||||||
set(_cmake_feature_test_cxx_static_assert "${GNU43_CXX11}")
|
set(_cmake_feature_test_cxx_static_assert "${GNU43_CXX11}")
|
||||||
set(_oldestSupported)
|
set(_oldestSupported)
|
||||||
|
@ -59,6 +59,7 @@
|
|||||||
F(cxx_range_for) \
|
F(cxx_range_for) \
|
||||||
F(cxx_raw_string_literals) \
|
F(cxx_raw_string_literals) \
|
||||||
F(cxx_reference_qualified_functions) \
|
F(cxx_reference_qualified_functions) \
|
||||||
|
F(cxx_rvalue_references) \
|
||||||
F(cxx_static_assert) \
|
F(cxx_static_assert) \
|
||||||
F(cxx_strong_enums) \
|
F(cxx_strong_enums) \
|
||||||
F(cxx_trailing_return_types) \
|
F(cxx_trailing_return_types) \
|
||||||
|
5
Tests/CompileFeatures/cxx_rvalue_references.cpp
Normal file
5
Tests/CompileFeatures/cxx_rvalue_references.cpp
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
void someFunc(int&&)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user