-
Notifications
You must be signed in to change notification settings - Fork 66
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
make_map<int>(make_vector()) cannot be compiled #225
Comments
It looks like a bug with #include <boost/fusion/include/make_map.hpp>
#include <boost/fusion/include/make_vector.hpp>
#include <string>
using namespace boost::fusion;
typedef map<
pair<int, vector<>> >
map_type;
map_type m(make_pair<int>(vector<>())); A PR is very welcome if you can investigate some more on fixing this. |
Thanks for telling me a workaround! I could make my own make_map function using The original |
Well, actually fusion predates c++11. There are still some things need to be reworked, but care must be taken because fusion still has to support older compilers, although I am starting to think that maybe it's time to move on. |
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.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?The text was updated successfully, but these errors were encountered: