missing future result_tuple() ?

Issue #72 resolved
Nenad Vukicevic created an issue

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)

  1. Former user Account Deleted

    This is a bug. The implementation is using results instead of result_tuple. Will fix.

  2. Nenad Vukicevic 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()};
                                                            ^
    
  3. Log in to comment