test weak callback container

This commit is contained in:
Naios 2015-06-11 15:42:07 +02:00
parent f5c651d2aa
commit 092f83f74b
2 changed files with 7 additions and 3 deletions

View File

@ -107,7 +107,7 @@ namespace fu
typedef unwrap_function_impl<_RTy(_ATy...)> type;
};
template <typename>
template<typename>
struct to_true
: std::true_type { };

View File

@ -53,8 +53,6 @@ int main(int /*argc*/, char** /*argv*/)
// callback(SPELL_FAILED_SUCCESS);
};
// static_assert(std::is_void<decltype(lam)>::value, "blub");
fu::function_type_of_t<decltype(lam)> fun1;
fun1 = lam;
fun1(Callback<SpellCastResult>());
@ -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<bool> cont123;
typedef Continuable<Callback<bool>> myty1;