Skip to content
Snippets Groups Projects
Commit af1a2159 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Detect if lambdas in unevaluated contexts are possible

parent 87b35f59
Branches
Tags
1 merge request!1127Add CMake feature test for lambdas in unevaluated context
Pipeline #44791 passed
Pipeline: Dune Nightly Test

#44792

    ......@@ -208,3 +208,5 @@ check_cxx_symbol_exists(
    "functional"
    DUNE_HAVE_CXX_STD_IDENTITY
    )
    check_cxx_source_compiles("using F = decltype([]{})\;" DUNE_HAVE_CXX_UNEVALUATED_CONTEXT_LAMBDA)
    ......@@ -26,6 +26,9 @@
    /* does the standard library provide experimental::is_detected ? */
    #cmakedefine DUNE_HAVE_CXX_EXPERIMENTAL_IS_DETECTED 1
    /* does the language support lambdas in unevaluated contexts ? */
    #cmakedefine DUNE_HAVE_CXX_UNEVALUATED_CONTEXT_LAMBDA 1
    /* does the standard library provide identity ? */
    #cmakedefine DUNE_HAVE_CXX_STD_IDENTITY 1
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment