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

crow.h build error #131

Closed
shahmuratov opened this issue Apr 26, 2016 · 1 comment
Closed

crow.h build error #131

shahmuratov opened this issue Apr 26, 2016 · 1 comment

Comments

@shahmuratov
Copy link

shahmuratov commented Apr 26, 2016

Hi! I'm trying to build on Ubuntu 14.04 with g++ 5.3.0
gcc version 5.3.0 20151204 (Ubuntu 5.3.0-3ubuntu1~14.04)
Keep getting error

crow.h:6696:17: error: invalid use of ‘class std::set<typename function_t::arg<Indices>...>’
             ret.template set<
                 ^

Corresponding code is

auto ret = detail::routing_handler_call_helper::Wrapped<Func, typename function_t::template arg<Indices>...>();
            ret.template set<
                typename function_t::template arg<Indices>...
            >(std::move(f));

Before that tried to build with g++ 4.8 with same result
What can I do?

@shahmuratov
Copy link
Author

So I've figured out what the problem was. I've had using namespace std; before including crow.h. So #include "crow.h" should be at the very beginning of file

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