mirror of
https://github.com/boostorg/gil.git
synced 2026-01-29 19:42:11 +00:00
Build core tests with BOOST_GIL_USE_CONCEPT_CHECK defined (#230)
when building tests with both, Boost.Build and CMake. Disable concepts check for tests where range (e.g. std::array) used as image pixel - not fully specialised as acceptable pixel type. Ignore warnings from boost/concept_check.hpp Rationalise uses of GCC and clang diagnostic push/pop, with adding constraint for GCC 4.6+ as minimum version where the pragma was introduced. Closes #228
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
#ifdef BOOST_GIL_USE_CONCEPT_CHECK
|
||||
// FIXME: Range as pixel does not seem to fulfill pixel concepts due to no specializations required:
|
||||
// pixel.hpp(50) : error C2039 : 'type' : is not a member of 'boost::gil::color_space_type<P>
|
||||
#undef BOOST_GIL_USE_CONCEPT_CHECK
|
||||
#endif
|
||||
#include <boost/gil/algorithm.hpp>
|
||||
#include <boost/gil/image.hpp>
|
||||
#include <boost/gil/image_view.hpp>
|
||||
|
||||
Reference in New Issue
Block a user