Re: Linking error when changing > to >>

Exagon <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
I don't know if this is related, or if I am doing something stupid again, but
I noticed that when I am changing the grammar 

auto const var_dec_def = x3::lexeme["var "]
                         > +x3::alnum
                         > ":"
                         > type
                         > ";";

to

auto const var_dec_def = x3::lexeme["var "]
                         > +x3::alnum
                         > ":"
                         > -type //type is now optional
                         > ";";

and dont change something in the ast, it compiles fine, but when I change

struct VariableDec {
    std::string _name;
    Type _type;
};

to 

struct VariableDec {
    std::string _name;
    boost::optional<Type> _type;
};

now, I am also getting linking errors.
Again, I dont know if I am doing something stupid here, I am just trying to
help, please tell me immediately if I am makeing something stupid with
spirit x3, so I can avoid these mistakes in the future.

Greetings Exagon



--
View this message in context: http://boost.2283326.n4.nabble.com/Linking-error-when-changing-to-tp4689820p4689859.html
Sent from the spirit-general mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.