Boost logo

Boost Users :

Subject: Re: [Boost-users] [Q] boost::spirit BOOST_FUSION_ADAPT_STRUCT error
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-06-16 18:55:06


AMDG

V S P wrote:
> I found a couple of typos with my code, but still not working
>
> First problem was
> that I need to specify a fully qualified name in the 'struct' name as
> the first argument
>
> <snip>
> //function with name and a list of arguments
> struct cmdfunct_arg
> {
> std::string funct_nm;
> std::vector<t_cmd_arg> args;
> };
>
>
> BOOST_FUSION_ADAPT_STRUCT(
> setrak::pplg::cmdfunct_arg,
> (std::string, funct_nm)
> )
>
>

BOOST_FUSION_ADAPT_STRUCT needs to appear in
the global namespace.

In Christ,
Steven Watanabe


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