I am trying to write some parsers with boost.spirit.qi but when i am compiling i am getting the following deprecated warnings:
In file included from /usr/include/boost/iostreams/detail/is_dereferenceable.hpp:12:0 ...
#pragma message: NOTE: Use of this header (bool_trait_def.hpp) is deprecated
#pragma message: NOTE: Use of this header (template_arity_spec.hpp) is deprecated
Am i using the wrong parsers or something old? How can I get rid of these warnings?
EDIT: The /usr/include/boost/iostreams/detail/is_dereferenceable.hpp
is somehow included by /usr/include/boost/spirit/include/qi.hpp
I am using Boost Version 1.61
boost/iostreams/detail/...
doesn't look likeboost.spirit
(althought it could possibly be included, there are a few iterator classes i see that depend on things from iostreams). – Panpsychistbool_trait_def.hpp
andtemplate_arity_spec.hpp
). This issue is reported at Ticket #11886. – Pani/usr/include
, where your Boost header files are located, as a system directory by specifying the GCC (or Clang) command-line option-isystem /usr/include
. All warnings, other than those generated by#warning
, are suppressed for header files in system directories. Refer to The C Preprocessor for more details. – Pani#pragma message()
is clearly also exempt. I know because I run with-isystem
since forever – Resonate-isystem
appears to work differently than Clang's. Good to know. Thanks! – Pani