Skip to content

Commit 9206fd2

Browse files
committed
added overload
1 parent fd59a98 commit 9206fd2

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@
4646
[submodule "include/asis/include/ut/asis"]
4747
path = include/asis/include/ut/asis
4848
url = https://gist.github.com/dk949/55ab7a19955b3161593067eb3837eb20
49+
[submodule "include/overload/include/ut/overload"]
50+
path = include/overload/include/ut/overload
51+
url = https://gist.github.com/dk949/316411796aa993a7d3e823740ed352d8

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ target_link_libraries(MY_TARGET UT::target_name)
5959
* `UT::curry`: create a curried function out of a regular function
6060
* `UT::defer`: a macro to defer execution until the scope ends
6161
* `UT::print`: macros for printing using `std::format` in c++20
62+
* `UT::overload`: creates a function object merging several other function objects as an overload set
6263

6364
<!-- AUTOGEN_END -->
6465

include/overload/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cmake_minimum_required(VERSION 3.21)
2+
project(libut LANGUAGES CXX)
3+
4+
add_library(libut_target_overload INTERFACE)
5+
target_sources(libut_target_overload PUBLIC
6+
FILE_SET HEADERS
7+
BASE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include
8+
FILES
9+
${CMAKE_CURRENT_SOURCE_DIR}/include/ut/overload/overload.hpp
10+
)
11+
12+
message(STATUS "libut: adding UT::overload")
13+
add_library(UT::overload ALIAS libut_target_overload)
14+
Submodule overload added at 0a822f9

0 commit comments

Comments
 (0)