Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++] <functional> is missing in plasma/client.h #18468

Closed
asfimport opened this issue Apr 6, 2018 · 1 comment
Closed

[C++] <functional> is missing in plasma/client.h #18468

asfimport opened this issue Apr 6, 2018 · 1 comment

Comments

@asfimport
Copy link

I got the following compile error:


In file included from /home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.cc:20:0:
/home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.h:363:32: error: ‘function’ in namespace ‘std’ does not name a template type
                     const std::function<std::shared_ptr<Buffer>(
                                ^~~~~~~~
/home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.h:363:40: error: expected ‘,’ or ‘...’ before ‘<’ token
                     const std::function<std::shared_ptr<Buffer>(
                                        ^
/home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.cc:276:8: error: prototype for ‘arrow::Status plasma::PlasmaClient::GetBuffers(const ObjectID*, int64_t, int64_t, const std::function<std::shared_ptr<arrow::Buffer>(const plasma::UniqueID&, const std::shared_ptr<arrow::Buffer>&)>&, plasma::ObjectBuffer*)’ does not match any in class ‘plasma::PlasmaClient’
 Status PlasmaClient::GetBuffers(
        ^~~~~~~~~~~~
In file included from /home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.cc:20:0:
/home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.h:362:10: error: candidate is: arrow::Status plasma::PlasmaClient::GetBuffers(const ObjectID*, int64_t, int64_t, int)
   Status GetBuffers(const ObjectID* object_ids, int64_t num_objects, int64_t timeout_ms,
          ^~~~~~~~~~
/home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.cc: In member function ‘arrow::Status plasma::PlasmaClient::Get(const std::vector<plasma::UniqueID>&, int64_t, std::vector<plasma::ObjectBuffer>*)’:
/home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.cc:410:85: error: no matching function for call to ‘plasma::PlasmaClient::GetBuffers(const value_type*, const size_t&, int64_t&, const plasma::PlasmaClient::Get(const std::vector<plasma::UniqueID>&, int64_t, std::vector<plasma::ObjectBuffer>*)::<lambda(const ObjectID&, const std::shared_ptr<arrow::Buffer>&)>&, __gnu_cxx::__alloc_traits<std::allocator<plasma::ObjectBuffer> >::value_type*)’
   return GetBuffers(&object_ids[0], num_objects, timeout_ms, wrap_buffer, &(*out)[0]);
                                                                                     ^
In file included from /home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.cc:20:0:
/home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.h:362:10: note: candidate: arrow::Status plasma::PlasmaClient::GetBuffers(const ObjectID*, int64_t, int64_t, int)
   Status GetBuffers(const ObjectID* object_ids, int64_t num_objects, int64_t timeout_ms,
          ^~~~~~~~~~
/home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.h:362:10: note:   candidate expects 4 arguments, 5 provided
/home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.cc: In member function ‘arrow::Status plasma::PlasmaClient::Get(const ObjectID*, int64_t, int64_t, plasma::ObjectBuffer*)’:
/home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.cc:417:74: error: no matching function for call to ‘plasma::PlasmaClient::GetBuffers(const ObjectID*&, int64_t&, int64_t&, const plasma::PlasmaClient::Get(const ObjectID*, int64_t, int64_t, plasma::ObjectBuffer*)::<lambda(const ObjectID&, const std::shared_ptr<arrow::Buffer>&)>&, plasma::ObjectBuffer*&)’
   return GetBuffers(object_ids, num_objects, timeout_ms, wrap_buffer, out);
                                                                          ^
In file included from /home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.cc:20:0:
/home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.h:362:10: note: candidate: arrow::Status plasma::PlasmaClient::GetBuffers(const ObjectID*, int64_t, int64_t, int)
   Status GetBuffers(const ObjectID* object_ids, int64_t num_objects, int64_t timeout_ms,
          ^~~~~~~~~~
/home/kou/work/cpp/arrow.kou/cpp/src/plasma/client.h:362:10: note:   candidate expects 4 arguments, 5 provided

I don't know why it's not occurred on Travis CI.

Reporter: Kouhei Sutou / @kou
Assignee: Kouhei Sutou / @kou

PRs and other links:

Note: This issue was originally created as ARROW-2405. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Uwe Korn / @xhochy:
Issue resolved by pull request 1844
#1844

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants