joosthooz commented on pull request #12609:
URL: https://github.com/apache/arrow/pull/12609#issuecomment-1072773541


   For now I've worked around it by forward declaring `GetTracer()`.
   But the wrapping still doesn't work. It's rather difficult to figure out 
what is need because all of the templating going on.
   Should I first try to create something outside of `future.h` altogether, 
that just wraps around `Then()`?
   Some errors I'm getting:
   ```
   arrow/cpp/src/arrow/util/future.h:559:11: error: no match for call to 
‘(arrow::util::AsyncDestroyable::Destroy()::<lambda(const arrow::Status&)>) ()’
     559 |           func();
         |           ^~~~
   ```
   ```
   arrow/cpp/src/arrow/util/future.h:564:16: error: use of deleted function 
‘arrow::Future<T>::AddCallback(OnComplete, arrow::CallbackOptions) const [with 
OnComplete = arrow::util::AsyncDestroyable::Destroy()::<lambda(const 
arrow::Status&)>; Callback = 
arrow::Future<>::WrapStatusyOnComplete::Callback<arrow::util::AsyncDestroyable::Destroy()::<lambda(const
 arrow::Status&)> >; T = arrow::internal::Empty]::Wrapstruct::Wrapstruct()’
     564 |     Wrapstruct wrapper;
         |                ^~~~~~~
   arrow/cpp/src/arrow/util/future.h:556:12: note: 
‘arrow::Future<T>::AddCallback(OnComplete, arrow::CallbackOptions) const [with 
OnComplete = arrow::util::AsyncDestroyable::Destroy()::<lambda(const 
arrow::Status&)>; Callback = 
arrow::Future<>::WrapStatusyOnComplete::Callback<arrow::util::AsyncDestroyable::Destroy()::<lambda(const
 arrow::Status&)> >; T = arrow::internal::Empty]::Wrapstruct::Wrapstruct()’ is 
implicitly deleted because the default definition would be ill-formed:
     556 |     struct Wrapstruct {
         |            ^~~~~~~~~~
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to