mirror of
https://github.com/Naios/continuable.git
synced 2025-12-08 01:36:46 +08:00
more work
This commit is contained in:
parent
1b3ed0e645
commit
46af9b3531
@ -217,7 +217,7 @@ public:
|
||||
|
||||
/*
|
||||
/// Validates the Continuable
|
||||
inline Continuable& Validate()
|
||||
inline Continuable Validate()
|
||||
{
|
||||
_released = false;
|
||||
return *this;
|
||||
@ -501,6 +501,8 @@ namespace detail
|
||||
|
||||
typedef std::function<continuable_t()> return_t;
|
||||
|
||||
typedef functional_traits<_ATy...> traits_t;
|
||||
|
||||
struct ResultStorage
|
||||
{
|
||||
ResultStorage(std::size_t count_)
|
||||
@ -525,9 +527,15 @@ namespace detail
|
||||
template <typename _CTy, typename Arguments>
|
||||
inline static void invoke(shared_result_t storage, Arguments&& args, _CTy&& current)
|
||||
{
|
||||
auto&& corrected = functional_traits<_ATy...>::correct(std::forward<_CTy>(current));
|
||||
auto ret =
|
||||
fu::invoke_from_tuple(
|
||||
traits_t::correct(std::forward<_CTy>(current)),
|
||||
std::forward<Arguments>(args)
|
||||
);
|
||||
|
||||
std::cout << "invoking: " << Position << " " << typeid(corrected).name() << std::endl;
|
||||
// TODO invalidate tuple
|
||||
|
||||
std::cout << "invoking: " << Position << " " << typeid(ret).name() << std::endl;
|
||||
}
|
||||
|
||||
/// Invoke and pass recursive to itself
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user