Features: Add cxx_lambdas.
This commit is contained in:
parent
a579a0aab4
commit
15cdf6f51d
|
@ -57,6 +57,11 @@ The features known to this version of CMake are:
|
|||
|
||||
.. _N2540: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2540.htm
|
||||
|
||||
``cxx_lambdas``
|
||||
Lambda functions, as defined in N2927_.
|
||||
|
||||
.. _N2927: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2927.pdf
|
||||
|
||||
``cxx_override``
|
||||
Override control ``override`` keyword, as defined in N2928_.
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ set(_cmake_feature_test_cxx_constexpr "${GNU46_CXX11}")
|
|||
# TODO: Should be supported by GNU 4.5
|
||||
set(GNU45_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
|
||||
set(_cmake_feature_test_cxx_explicit_conversions "${GNU45_CXX11}")
|
||||
set(_cmake_feature_test_cxx_lambdas "${GNU45_CXX11}")
|
||||
# TODO: Should be supported by GNU 4.4
|
||||
set(GNU44_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
|
||||
set(_cmake_feature_test_cxx_auto_type "${GNU44_CXX11}")
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
F(cxx_explicit_conversions) \
|
||||
F(cxx_final) \
|
||||
F(cxx_inheriting_constructors) \
|
||||
F(cxx_lambdas) \
|
||||
F(cxx_override) \
|
||||
F(cxx_static_assert) \
|
||||
F(cxx_strong_enums) \
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
void someFunc()
|
||||
{
|
||||
[](){}();
|
||||
}
|
Loading…
Reference in New Issue