Skip to content

Building with GCC < 6.0 fails #375

@The-EDev

Description

@The-EDev

When compiling with GCC 5 or 4 the following error is presented:

crow_all.h: In member function 'std::tuple<short unsigned int, std::vector<short unsigned int, std::allocator<short unsigned int> >, crow::routing_params> crow::Trie::find(const string&, const crow::Trie::Node*, unsigned int, crow::routing_params*, std::vector<short unsigned int>*) const':
crow_all.h:10028:63: error: converting to 'std::tuple<short unsigned int, std::vector<short unsigned int, std::allocator<short unsigned int> >, crow::routing_params>' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {const short unsigned int&, std::vector<short unsigned int, std::allocator<short unsigned int> >&, crow::routing_params&}; <template-parameter-2-2> = void; _Elements = {short unsigned int, std::vector<short unsigned int, std::allocator<short unsigned int> >, crow::routing_params}]'
                 return {node->rule_index, *blueprints, *params};
                                                               ^
crow_all.h:10155:50: error: converting to 'std::tuple<short unsigned int, std::vector<short unsigned int, std::allocator<short unsigned int> >, crow::routing_params>' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {short unsigned int&, std::vector<short unsigned int, std::allocator<short unsigned int> >&, crow::routing_params&}; <template-parameter-2-2> = void; _Elements = {short unsigned int, std::vector<short unsigned int, std::allocator<short unsigned int> >, crow::routing_params}]'
             return {found, found_BP, match_params}; //Called after all the recursions have been done

https://godbolt.org/z/rG53s9q5W

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions