mirror of
https://github.com/BlackMATov/kari.hpp.git
synced 2025-12-15 13:29:49 +07:00
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
#include "kari_hpp/kari.hpp"
|
#include "kari.hpp/kari.hpp"
|
||||||
```
|
```
|
||||||
|
|
||||||
Also, you can add the root repository directory to your [cmake](https://cmake.org) project:
|
Also, you can add the root repository directory to your [cmake](https://cmake.org) project:
|
||||||
|
|||||||
@@ -29,4 +29,11 @@ add_executable(${PROJECT_NAME} ${UNTESTS_SOURCES})
|
|||||||
target_link_libraries(${PROJECT_NAME}
|
target_link_libraries(${PROJECT_NAME}
|
||||||
Catch2
|
Catch2
|
||||||
kari.hpp)
|
kari.hpp)
|
||||||
|
target_compile_options(${PROJECT_NAME}
|
||||||
|
PRIVATE
|
||||||
|
$<$<CXX_COMPILER_ID:MSVC>:
|
||||||
|
/W4>
|
||||||
|
PRIVATE
|
||||||
|
$<$<OR:$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
|
||||||
|
-Wall -Wextra -Wpedantic>)
|
||||||
add_test(${PROJECT_NAME} ${PROJECT_NAME})
|
add_test(${PROJECT_NAME} ${PROJECT_NAME})
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#define CATCH_CONFIG_FAST_COMPILE
|
#define CATCH_CONFIG_FAST_COMPILE
|
||||||
#include <catch2/catch.hpp>
|
#include <catch2/catch.hpp>
|
||||||
|
|
||||||
#include <kari_hpp/kari.hpp>
|
#include <kari.hpp/kari.hpp>
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
@@ -95,8 +95,6 @@ namespace
|
|||||||
std::forward<Cs>(cs)...);
|
std::forward<Cs>(cs)...);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr auto f = kari::curry(minus2_gf{}, 10, 20);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
@@ -194,10 +192,6 @@ namespace
|
|||||||
static box_without_move operator+(const box_without_move& lhs, const box_without_move& rhs) {
|
static box_without_move operator+(const box_without_move& lhs, const box_without_move& rhs) {
|
||||||
return box_without_move(lhs.v() + rhs.v());
|
return box_without_move(lhs.v() + rhs.v());
|
||||||
}
|
}
|
||||||
|
|
||||||
static box_without_move operator-(const box_without_move& lhs, const box_without_move& rhs) {
|
|
||||||
return box_without_move(lhs.v() - rhs.v());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
using namespace kari;
|
using namespace kari;
|
||||||
|
|||||||
Reference in New Issue
Block a user