Re: Bug: Cannot open include

Michael Powell <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <CAMEoF_EvaRSr8ct5HN12=mS1Bs8oMjYweLLVknmxQGjphX8R0g@mail.gmail.com>
On Thu, Nov 23, 2017 at 11:39 AM, Michael Powell <[email protected]> wrote:
> Hello,
>
> Straight out of the gate, getting this error trying to include:
>
> #include <boost/tti/has_type.hpp>
>
> 4>/path/to/boost/spirit/home/x3/support/traits/container_traits.hpp(16):
> fatal error C1083: Cannot open include file: 'boost/tti/has_type.hpp':
> No such file or directory

Preliminary analysis suggests, there is no <boost/tti/...> path. There
is, however, a <boost/mpl/aux_/has_type.hpp>.

> My rule is fairly straightforward, at least as far as I can tell:
>
> #include <boost/spirit/home/x3.hpp>
>
> // TODO: TBD: we may refine this later on...
> using namespace boost::spirit;
> using namespace boost::spirit::x3;
>
> x3::rule<class Port, std::uint16_t> const Port = "Port";
>
> auto const Port_def = digit
>     | (char_('1', '9') >> digit[repeat(1, 3)])
>     | (char_('1', '5') >> digit[repeat(4)])
>     | (char_('6') >> char_('0', '4') >> digit[repeat(3)])
>     | ("65" >> char_('0', '4') >> digit[repeat(2)])
>     | ("655" >> char_('0', '2') >> digit)
>     | ("6553" >> char_('0', '5'))
>     ;
>
> BOOST_SPIRIT_DEFINE(Port);
>
> I can patch locally, possibly also submit a PR.
>
> Best,
>
> Michael Powell

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
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.