From 092f83f74b3c01fa70198334c2c943eb02e69528 Mon Sep 17 00:00:00 2001 From: Naios Date: Thu, 11 Jun 2015 15:42:07 +0200 Subject: [PATCH] test weak callback container --- fluent/functional_unwrap.hpp | 2 +- test.cpp | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fluent/functional_unwrap.hpp b/fluent/functional_unwrap.hpp index 3230ced..d490a71 100644 --- a/fluent/functional_unwrap.hpp +++ b/fluent/functional_unwrap.hpp @@ -107,7 +107,7 @@ namespace fu typedef unwrap_function_impl<_RTy(_ATy...)> type; }; - template + template struct to_true : std::true_type { }; diff --git a/test.cpp b/test.cpp index 6f413b7..b7e21a3 100644 --- a/test.cpp +++ b/test.cpp @@ -53,8 +53,6 @@ int main(int /*argc*/, char** /*argv*/) // callback(SPELL_FAILED_SUCCESS); }; - // static_assert(std::is_void::value, "blub"); - fu::function_type_of_t fun1; fun1 = lam; fun1(Callback()); @@ -66,7 +64,13 @@ int main(int /*argc*/, char** /*argv*/) make_weak_wrapped_callback(sc1); make_weak_wrapped_callback(sc2); + + WeakCallbackContainer callback; + auto weakCallback = callback([] + { + }); + typedef Continuable cont123; typedef Continuable> myty1;