Added tests for C API

This commit is contained in:
Paul-Louis Ageneau
2020-03-08 20:06:56 +01:00
parent 56198372fd
commit be04d8037e
9 changed files with 317 additions and 49 deletions

View File

@ -64,6 +64,7 @@ template <class... Ts> overloaded(Ts...)->overloaded<Ts...>;
template <typename... P> class synchronized_callback {
public:
synchronized_callback() = default;
synchronized_callback(std::function<void(P...)> func) { *this = std::move(func); };
~synchronized_callback() { *this = nullptr; }
synchronized_callback &operator=(std::function<void(P...)> func) {