mirror of
https://github.com/Naios/continuable.git
synced 2025-12-12 06:29:55 +08:00
Add potswa/cxx_function@e7beb8bfe as second test type erasure backend
This commit is contained in:
parent
c46aa9e7c3
commit
e22db05cc3
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -4,3 +4,6 @@
|
||||
[submodule "dep/function2/function2"]
|
||||
path = dep/function2/function2
|
||||
url = https://github.com/Naios/function2.git
|
||||
[submodule "dep/cxx_function/cxx_function"]
|
||||
path = dep/cxx_function/cxx_function
|
||||
url = https://github.com/potswa/cxx_function.git
|
||||
|
||||
@ -2,6 +2,10 @@ if(CONTINUABLE_UNIT_TESTS AND NOT TARGET gtest)
|
||||
add_subdirectory(googletest)
|
||||
endif()
|
||||
|
||||
if(CONTINUABLE_UNIT_TESTS AND NOT TARGET cxx_function)
|
||||
add_subdirectory(cxx_function)
|
||||
endif()
|
||||
|
||||
if(NOT TARGET function2)
|
||||
add_subdirectory(function2)
|
||||
endif()
|
||||
|
||||
5
dep/cxx_function/CMakeLists.txt
Normal file
5
dep/cxx_function/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
add_library(cxx_function INTERFACE)
|
||||
|
||||
target_include_directories(cxx_function
|
||||
INTERFACE
|
||||
"${CMAKE_CURRENT_LIST_DIR}")
|
||||
1
dep/cxx_function/cxx_function
Submodule
1
dep/cxx_function/cxx_function
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 8220501d0db1bcdd28a11c958f623c079c243000
|
||||
@ -14,6 +14,7 @@ foreach(STEP RANGE 4)
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
gtest-main
|
||||
cxx_function
|
||||
continuable)
|
||||
|
||||
target_compile_definitions(${PROJECT_NAME}
|
||||
|
||||
@ -29,8 +29,18 @@
|
||||
#include "continuable/continuable-base.hpp"
|
||||
#include "continuable/continuable-testing.hpp"
|
||||
#include "continuable/continuable.hpp"
|
||||
#include "cxx_function/cxx_function.hpp"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
template <typename... Args>
|
||||
using cxx_trait_of = cti::continuable_trait<cxx_function::function,
|
||||
cxx_function::function, Args...>;
|
||||
|
||||
template <typename... Args>
|
||||
using unique_cxx_trait_of =
|
||||
cti::continuable_trait<cxx_function::unique_function,
|
||||
cxx_function::unique_function, Args...>;
|
||||
|
||||
using cti::detail::util::identity;
|
||||
|
||||
inline auto to_hint(identity<> /*hint*/) { return identity<void>{}; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user