
Hi: I'm trying to adapt a structure for use with spirit. I have the following code: struct JAWSFunction { std::wstring FunctionType; std::wstring Description; std::wstring Synopsis; std::string ReturnType; std::vector<std::pair<std::wstring, std::wstring> > Parameters; }; //tell boost.Fusion about the JAWSFunction structure to allow it to be used with spirit. BOOST_FUSION_ADAPT_STRUCT(JAWSFunction, (std::wstring, FunctionType)(std::wstring, Description)(std::wstring, Synopsis)(std::wstring, ReturnType)(std::vector<std::pair<std::wstring, std::wstring> >, Parameters)) If I compile this with the std::vector<std::pair<std::wstring, std::wstring> > taken out, this works fine. However replacing the vector of pairs doesn't compile. How can I get this to work? Any help appreciated. Cheers Sean.