|
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
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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net