]> https://gitweb.dealii.org/ - dealii.git/commitdiff
silence boost warnings in step-53 2162/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 11 Feb 2016 13:33:58 +0000 (08:33 -0500)
committerTimo Heister <timo.heister@gmail.com>
Thu, 11 Feb 2016 14:18:05 +0000 (09:18 -0500)
deprecated warning about boost_trait_def.hpp when using boost 1.60

examples/step-53/step-53.cc

index 2b73c4273bcdc72e7bd6c82a750ed6099e0b62a9..157bf7442932d627aa067dfeb375853159e15c81 100644 (file)
 #include <deal.II/grid/grid_tools.h>
 
 // The remainder of the include files relate to reading the topography data.
-// As explained in the introduction, we will read it from a file and then
-// use the Functions::InterpolatedUniformGridData class that is declared in the
-// first of the following header files. Because the data is large, the file
-// we read from is stored as gzip compressed data and we make use of
-// some BOOST-provided functionality to read directly from gzipped data.
+// As explained in the introduction, we will read it from a file and then use
+// the Functions::InterpolatedUniformGridData class that is declared in the
+// first of the following header files. Because the data is large, the file we
+// read from is stored as gzip compressed data and we make use of some
+// BOOST-provided functionality to read directly from gzipped data. We wrap
+// the BOOST includes with a preprocessor macro that disables certain annoying
+// compiler warnings.
 #include <deal.II/base/function_lib.h>
 
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #include <boost/iostreams/filtering_stream.hpp>
 #include <boost/iostreams/filter/gzip.hpp>
 #include <boost/iostreams/device/file.hpp>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 #include <iostream>
 #include <fstream>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.