Skip to content

A list of lists issue #215

@SerhiiYashchuk

Description

@SerhiiYashchuk

Hi,
I'm new to metaprogramming and I've just started with brigand. I was playing with the library and faced with a problem. I can't compile the following code:

using List1 = brigand::list<int, float>;
using List2 = brigand::list<bool, char>;
using MyLists = brigand::list<List1, List2>;

int main()
{
  static_assert(brigand::index_of<MyLists, List1>() == 0, "wrong list index");
}

I get an error:

brigand/functions/lambda/apply.hpp:51: error: no type named 'type' in 'brigand::detail::apply<brigand::list<int, float>, brigand::list<brigand::list<int, float> > >'

Can you help me with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions