Boost Users :
Subject: Re: [Boost-users] Is selective header including supposed to work?
From: TONGARI J (tongari95_at_[hidden])
Date: 2014-04-12 12:52:32
2014-04-12 21:47 GMT+08:00 Johannes Lorenz <johannes89_at_[hidden]>:
> I like Qi, but the compile times are terrible sometimes. My example is
> similar to this in , but it needs 3x as much time to compile. I thought
> this problem might be omitted by including selectively what is needed. So I
> went into  and replaced
> #include <boost/spirit/include/qi.hpp>
> #include <boost/spirit/include/qi_action.hpp>
> #include <boost/spirit/include/qi_grammar.hpp>
> #include <boost/spirit/include/qi_uint.hpp>
> #include <boost/spirit/include/qi_char.hpp> .
> I got far, but then, there comes up a long error message, beginning like
> in .
> My questions are:
> * is selectively including from "boost/spirit/include" supposed to work,
> or should this never be done?
Yes, it should work.
> * if it should work, what is still left to be included in my case?
BTW, if you care about the compile time, there's Spirit X3 in develope
which utilizes c++11/14 and it claims to compile faster.
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