File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
include/phasar/DataFlow/IfdsIde Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,15 @@ if (NOT PHASAR_IN_TREE)
1010 set (CMAKE_PROJECT_NAME "phasar" )
1111endif ()
1212
13+ option (PHASAR_EXPERIMENTAL_CXX20 "Build phasar in C++20 mode. THis is an experimental feature" OFF )
14+
1315set (CMAKE_EXPORT_COMPILE_COMMANDS YES )
14- set (CMAKE_CXX_STANDARD 17)
16+ if (PHASAR_EXPERIMENTAL_CXX20)
17+ message (STATUS "Selected experimental C++ build" )
18+ set (CMAKE_CXX_STANDARD 20)
19+ else ()
20+ set (CMAKE_CXX_STANDARD 17)
21+ endif ()
1522set (CMAKE_CXX_STANDARD_REQUIRED ON )
1623set (CMAKE_CXX_EXTENSIONS OFF )
1724
Original file line number Diff line number Diff line change @@ -222,10 +222,8 @@ class [[clang::trivial_abi]] EdgeFunction final : EdgeFunctionBase {
222222
223223 // / Implicit-conversion constructor from EdgeFunctionRef. Increments the
224224 // / ref-count if not small-object optimized
225- template <typename ConcreteEF,
226- typename = std::enable_if_t <
227- !std::is_same_v<EdgeFunction, std::decay_t <ConcreteEF>> &&
228- IsEdgeFunction<ConcreteEF>>>
225+ template <typename ConcreteEF, typename = std::enable_if_t <!std::is_same_v<
226+ EdgeFunction, std::decay_t <ConcreteEF>>>>
229227 EdgeFunction (EdgeFunctionRef<ConcreteEF> CEF) noexcept
230228 : EdgeFunction (CEF.Instance ,
231229 {&VTableFor<ConcreteEF>, [CEF] {
You can’t perform that action at this time.
0 commit comments