mirror of
https://github.com/boostorg/hof.git
synced 2026-01-21 17:02:28 +00:00
8 lines
157 B
C++
8 lines
157 B
C++
#include <fit/always.hpp>
|
|
#include <memory>
|
|
|
|
int main() {
|
|
auto f = fit::always(std::unique_ptr<int>{new int(1)});
|
|
auto i = f(1, 2, 3);
|
|
(void)i;
|
|
} |