summaryrefslogtreecommitdiff
path: root/boost/gil/extension/dynamic_image/apply_operation.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/gil/extension/dynamic_image/apply_operation.hpp')
-rw-r--r--boost/gil/extension/dynamic_image/apply_operation.hpp54
1 files changed, 23 insertions, 31 deletions
diff --git a/boost/gil/extension/dynamic_image/apply_operation.hpp b/boost/gil/extension/dynamic_image/apply_operation.hpp
index beb79bad77..cebca61ce8 100644
--- a/boost/gil/extension/dynamic_image/apply_operation.hpp
+++ b/boost/gil/extension/dynamic_image/apply_operation.hpp
@@ -1,31 +1,27 @@
-/*
- Copyright 2005-2007 Adobe Systems Incorporated
-
- Use, modification and distribution are subject to 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).
-
- See http://opensource.adobe.com/gil for most recent version including documentation.
-*/
-
-/*************************************************************************************************/
-
-#ifndef GIL_APPLY_OPERATION_HPP
-#define GIL_APPLY_OPERATION_HPP
+//
+// Copyright 2005-2007 Adobe Systems Incorporated
+//
+// 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
+//
+#ifndef BOOST_GIL_EXTENSION_DYNAMIC_IMAGE_APPLY_OPERATION_HPP
+#define BOOST_GIL_EXTENSION_DYNAMIC_IMAGE_APPLY_OPERATION_HPP
+
+#include <boost/gil/extension/dynamic_image/apply_operation_base.hpp>
+#include <boost/gil/extension/dynamic_image/variant.hpp>
+
+#ifdef BOOST_GIL_DOXYGEN_ONLY
+#undef BOOST_GIL_REDUCE_CODE_BLOAT
+#endif
-////////////////////////////////////////////////////////////////////////////////////////
-/// \file
-/// \brief Implements apply_operation for variants. Optionally performs type reduction
-/// \author Lubomir Bourdev and Hailin Jin \n
-/// Adobe Systems Incorporated
-/// \date 2005-2007 \n Last updated on May 4, 2006
-///
-////////////////////////////////////////////////////////////////////////////////////////
+// Implements apply_operation for variants.
+// Optionally performs type reduction.
+#ifdef BOOST_GIL_REDUCE_CODE_BLOAT
-#include "apply_operation_base.hpp"
-#include "variant.hpp"
+#include <boost/gil/extension/dynamic_image/reduce.hpp>
-#ifndef GIL_REDUCE_CODE_BLOAT
+#else
namespace boost { namespace gil {
@@ -50,12 +46,8 @@ typename BinaryOp::result_type apply_operation(const variant<Types1>& arg1, cons
return apply_operation_base<Types1,Types2>(arg1._bits, arg1._index, arg2._bits, arg2._index, op);
}
-} } // namespace boost::gil
-
-#else
-
-#include "reduce.hpp"
+}} // namespace boost::gil
-#endif
+#endif // defined(BOOST_GIL_REDUCE_CODE_BLOAT)
#endif