
30 Jul
2017
30 Jul
'17
10:25 p.m.
Hi Peeps Can anyone tell me what's wrong with this? I think macro expansion is going awry, but I'm not sure why. Do I really have to typedef the map<...> type to keep Fusion happy? Thx. #include<string> #include<map> #include <boost/fusion/adapted/struct/define_struct.hpp> #include <boost/fusion/include/define_struct.hpp> BOOST_FUSION_DEFINE_STRUCT( (demo), curves, ((std::map<std::string, std::string>), futures) ((std::map<std::string, std::string>), credit_curves) ) int main( ) { return 0; }
make fusion.cpp|9 col 39| error: invalid declarator before ‘)’ token
|| ((std::map<std::string, std::string>), futures) Kind Regards Rob.