Boost logo

Boost Users :

Subject: [Boost-users] [Fusion] issues when adapting an existing structure
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2011-07-25 13:28:13

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.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at