Boost Users :
Subject: Re: [Boost-users] [spirit] warnings after upgrade to 1.47
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2011-07-19 10:27:20
> After upgrading to boost 1.47, I got the attached enormous warning,
> ironically saying that names are too long, for a very simple use of
> boost.spirit. Code:
> #include <string>
> #include <vector>
> using namespace std;
> #include <boost/spirit/include/karma.hpp> namespace bsk =
> boost::spirit::karma; namespace bsa = boost::spirit::ascii;
> vector<string> vUnrecog;
> "Init file options not recognized:\n" <<
> (" \"" << bsa::string << '"' << bsk::eol) % "",
> Is there something I am doing suboptimally or in an old way? (The code has
> been around for about 2 years now).
It's not your fault, but not ours either :-P
Spirit V2.5 (as in V1.47) has been partially rewritten to straighten out a couple of wrinkles and to fix some problems. I believe that's the reason why you're starting to see these warnings now.
The only thing I could think of as a workaround is to disable that warning for your code, either via the command line or using #pragma warning().
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