some tests

This commit is contained in:
Naios 2015-06-10 03:09:07 +02:00
parent 7c77e986f6
commit d5477986c9

View File

@ -92,12 +92,13 @@ int main(int argc, char** argv)
// This will never be executed because the CallbackContainer was deallocated and its weak callback proxies are crash safe. // This will never be executed because the CallbackContainer was deallocated and its weak callback proxies are crash safe.
weak_cb_test(); weak_cb_test();
SharedCallback<> weak_2 = make_shared_callback([] auto weak_2 = make_shared_callback([]
{ {
}); });
auto wrapped = make_weak_wrapped_callback(weak_2); auto wrapped = make_weak_wrapped_callback(weak_2);
auto wrapped2 = make_weak_wrapped_callback(WeakCallback<>(weak_2));
return 0; return 0;
} }