Skip to content

Commit

Permalink
Include <boost/gil.hpp> in examples (#355)
Browse files Browse the repository at this point in the history
A typical user is supposed to include the main header and
to not know the library enough to include headers selectively.
  • Loading branch information
mloskot committed Jul 29, 2019
1 parent d0c474e commit 348fd69
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/adaptive_threshold.cpp
Expand Up @@ -5,8 +5,8 @@
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/gil.hpp>
#include <boost/gil/extension/io/png.hpp>
#include <boost/gil/image_processing/threshold.hpp>

using namespace boost::gil;

Expand Down
3 changes: 1 addition & 2 deletions example/convolution.cpp
Expand Up @@ -4,8 +4,7 @@
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/gil/image.hpp>
#include <boost/gil/typedefs.hpp>
#include <boost/gil.hpp>
#include <boost/gil/extension/io/jpeg.hpp>
#include <boost/gil/extension/numeric/kernel.hpp>
#include <boost/gil/extension/numeric/convolve.hpp>
Expand Down
1 change: 1 addition & 0 deletions example/interleaved_ptr.cpp
Expand Up @@ -23,6 +23,7 @@ namespace boost { namespace gil {
at_c(const interleaved_ref<ChannelReference,Layout>& p);
} }

#include <boost/gil.hpp>
#include <boost/gil/extension/io/jpeg.hpp>

#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion example/interleaved_ptr.hpp
Expand Up @@ -8,7 +8,7 @@
#ifndef BOOST_GIL_EXAMPLE_INTERLEAVED_PTR_HPP
#define BOOST_GIL_EXAMPLE_INTERLEAVED_PTR_HPP

#include <boost/gil/pixel_iterator.hpp>
#include <boost/gil.hpp>
#include <boost/mp11.hpp>

#include <type_traits>
Expand Down
1 change: 1 addition & 0 deletions example/interleaved_ref.hpp
Expand Up @@ -8,6 +8,7 @@
#ifndef BOOST_GIL_EXAMPLE_INTERLEAVED_REF_HPP
#define BOOST_GIL_EXAMPLE_INTERLEAVED_REF_HPP

#include <boost/gil.hpp>
#include <boost/gil/extension/dynamic_image/dynamic_image_all.hpp>

#include <type_traits>
Expand Down

0 comments on commit 348fd69

Please sign in to comment.