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

build fail on arm32 #643

Open
welees opened this issue Nov 28, 2024 · 0 comments
Open

build fail on arm32 #643

welees opened this issue Nov 28, 2024 · 0 comments

Comments

@welees
Copy link

welees commented Nov 28, 2024

When I build with arm-linux-gnueabi-gcc, the compiler report

http/server/HttpHandler.cpp:241:65: error: invalid use of incomplete type ‘class std::future<void>’
         hv::async(std::bind(handler->async_handler, req, writer));
                                                                 ^
In file included from cpputil/hthreadpool.h:16:0,
                 from cpputil/hasync.h:5,
                 from http/server/HttpHandler.cpp:8:
/usr/arm-linux-gnueabi/include/c++/5/future:115:11: note: declaration of ‘class std::future<void>’
     class future;
           ^
In file included from http/server/HttpHandler.cpp:8:0:
cpputil/hasync.h: In instantiation of ‘std::future<decltype (fn(hv::async::args ...))> hv::async(Fn&&, Args&& ...) [with Fn = std::_Bind<std::function<void(const std::shared_ptr<HttpRequest>&, const std::shared_ptr<hv::HttpResponseWriter>&)>(std::shared_ptr<HttpRequest>, std::shared_ptr<hv::HttpResponseWriter>)>; Args = {}; decltype (fn(hv::async::args ...)) = void]’:
http/server/HttpHandler.cpp:241:65:   required from here
cpputil/hasync.h:25:6: error: return type ‘class std::future<void>’ is incomplete
 auto async(Fn&& fn, Args&&... args) -> std::future<decltype(fn(args...))> {
      ^
cpputil/hasync.h:26:98: error: invalid use of incomplete type ‘class std::future<void>’
     return GlobalThreadPool::instance()->commit(std::forward<Fn>(fn), std::forward<Args>(args)...);

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

No branches or pull requests

1 participant