Skip to content

make_map<int>(make_vector()) cannot be compiled #225

@skhrshin

Description

@skhrshin

I'm about to make a boost::fusion::map<boost::fusion::pair<int, boost::fusion::vector<>>> object, but the following code won't be compiled.

#include <boost/fusion/include/make_map.hpp>
#include <boost/fusion/include/make_vector.hpp>

int main() {
    boost::fusion::make_map<int>(boost::fusion::make_vector());
}

You can try it here: https://wandbox.org/permlink/9t5X0yHFBW5eZ2xC

Since boost::fusion::map looked to be doing something special if passed data is sequence, I took a look at the document but could find nothing about it. What's wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions