2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-26 16:52:10 +00:00

Replace BOOST_STATIC_CONSTANT with constexpr (#211)

Tidy up formatting of refactored parts of code.
This commit is contained in:
Mateusz Loskot
2019-01-12 23:57:35 +01:00
committed by GitHub
parent fb19a1205d
commit a2b2ca977a
22 changed files with 148 additions and 82 deletions

View File

@@ -82,9 +82,11 @@ struct my_color_converter {
}
};
// Models a Unary Function
template <typename P> // Models PixelValueConcept
struct mandelbrot_fn {
/// Models a Unary Function
/// \tparam P models PixelValueConcept
template <typename P>
struct mandelbrot_fn
{
using point_t = boost::gil::point_t;
using const_t = mandelbrot_fn<P>;
using value_type = P;
@@ -92,7 +94,7 @@ struct mandelbrot_fn {
using const_reference = value_type;
using argument_type = point_t;
using result_type = reference;
BOOST_STATIC_CONSTANT(bool, is_mutable=false);
static bool constexpr is_mutable = false;
value_type _in_color,_out_color;
point_t _img_size;