missing future result_tuple() ?
Issue #72
resolved
I am getting an error that future result_tuple() is missing.
int a, b, c;
future<int, int, int>f = make_future (1, 2, 3);
std::tie (a, b, c) = f.result_tuple ();
tuple.cpp:13:26: error: ‘upcxx::future<int, int, int> {aka struct upcxx::future1<upcxx::detail::future_kind_shref<upcxx::detail::future_header_ops_general>, int, int, int>}’ has no member named ‘result_tuple’
Am I coding this right? I am using spec from Sep 20th.
Comments (5)
-
Account Deleted -
Account Deleted - changed status to resolved
Fixed issue 72.
→ <<cset c31a0f625277>>
-
reporter After the fix I am getting this error/warning as some types are getting mixed up (-fpermissive makes it a warning instead of error):
/eng/upc/dev/nenad/upcxx/bld/upcxx/upcxx.O3.gasnet1_seq.smp/include/upcxx/future/future1.hpp:121:56: warning: passing ‘const impl_type {aka const upcxx::detail::future_impl_shref<upcxx::detail::future_header_ops_general, int, double>}’ as ‘this’ argument discards qualifiers [-fpermissive] return results_type{impl_.template result_rvals()}; ^
-
reporter - changed status to open
-
Account Deleted - changed status to resolved
Fixed issue 72, again
→ <<cset fc490995026f>>
- Log in to comment
This is a bug. The implementation is using
results
instead ofresult_tuple
. Will fix.