mirror of
https://github.com/Naios/continuable.git
synced 2026-02-07 10:19:46 +08:00
warnings
This commit is contained in:
parent
a20cb9e9c6
commit
7bc77bb371
14
test.cpp
14
test.cpp
@ -87,17 +87,17 @@ int main(int /*argc*/, char** /*argv*/)
|
|||||||
|
|
||||||
// Continuable<Callback<SpellCastResult>> spell
|
// Continuable<Callback<SpellCastResult>> spell
|
||||||
CastSpell(63362)
|
CastSpell(63362)
|
||||||
.then([](SpellCastResult result)
|
.then([](SpellCastResult)
|
||||||
{
|
{
|
||||||
return CastSpell(63362);
|
return CastSpell(63362);
|
||||||
})
|
})
|
||||||
.then([](SpellCastResult result)
|
.then([](SpellCastResult)
|
||||||
{
|
{
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Wraps a callback function into a continuable
|
// Wraps a callback function into a continuable
|
||||||
auto cba1 = make_continuable([=](Callback<SpellCastResult>&& callback)
|
auto cba1 = make_continuable([=](Callback<SpellCastResult>&&)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
@ -113,11 +113,11 @@ int main(int /*argc*/, char** /*argv*/)
|
|||||||
typedef fu::requires_functional_constructible<std::function<void()>>::type test_assert1;
|
typedef fu::requires_functional_constructible<std::function<void()>>::type test_assert1;
|
||||||
// typedef fu::requires_functional_constructible<std::vector<int>>::type test_assert2;
|
// typedef fu::requires_functional_constructible<std::vector<int>>::type test_assert2;
|
||||||
|
|
||||||
// detail::convert_void_to_continuable<void>::type* _test5 = nullptr;
|
detail::convert_void_to_continuable<void>::type* _test5 = nullptr;
|
||||||
|
_test5 = nullptr;
|
||||||
|
|
||||||
// detail::convert_void_to_continuable<Continuable<Callback<SpellCastResult>>>::type* _test6 = nullptr;
|
detail::convert_void_to_continuable<Continuable<Callback<SpellCastResult>>>::type* _test6 = nullptr;
|
||||||
|
_test6 = nullptr;
|
||||||
// auto cba2 = make_continuable(myvec);
|
|
||||||
|
|
||||||
std::cout << "ok" << std::endl;
|
std::cout << "ok" << std::endl;
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user