@@ -20,8 +20,10 @@ namespace boost { namespace gil {
20
20
// List of currently defined functors:
21
21
// pixel_plus_t (+)
22
22
// pixel_minus_t (-)
23
- // pixel_multiplies_scalar_t (*)
24
- // pixel_divides_scalar_t (/)
23
+ // pixel_multiplies_scalar_t (*s)
24
+ // pixel_multiplies_t (*)
25
+ // pixel_divides_scalar_t (/s)
26
+ // pixel_divides_t (/)
25
27
// pixel_halves_t (/=2),
26
28
// pixel_zeros_t (=0)
27
29
// pixel_assigns_t (=)
@@ -97,7 +99,7 @@ struct pixel_multiplies_scalar_t
97
99
// / \tparam PixelRef1 - models PixelConcept
98
100
// / \tparam PixelResult - models PixelValueConcept
99
101
template <typename PixelRef1, typename PixelRef2, typename PixelResult>
100
- struct pixel_multiply_t
102
+ struct pixel_multiplies_t
101
103
{
102
104
auto operator ()(PixelRef1 const & p1, PixelRef2 const & p2) const -> PixelResult
103
105
{
@@ -113,6 +115,9 @@ struct pixel_multiply_t
113
115
}
114
116
};
115
117
118
+ template <typename PixelRef1, typename PixelRef2, typename PixelResult>
119
+ using pixel_multiply_t [[deprecated]] = pixel_multiplies_t <PixelRef1, PixelRef2, PixelResult>;
120
+
116
121
// / \ingroup PixelNumericOperations
117
122
// / \brief Performs channel-wise division of pixel elements by scalar.
118
123
// / \tparam PixelRef - models PixelConcept
@@ -139,7 +144,7 @@ struct pixel_divides_scalar_t
139
144
// / \tparam PixelRef2 - models PixelConcept
140
145
// / \tparam PixelResult - models PixelValueConcept
141
146
template <typename PixelRef1, typename PixelRef2, typename PixelResult>
142
- struct pixel_divide_t
147
+ struct pixel_divides_t
143
148
{
144
149
auto operator ()(PixelRef1 const & p1, PixelRef2 const & p2) const -> PixelResult
145
150
{
@@ -155,6 +160,9 @@ struct pixel_divide_t
155
160
}
156
161
};
157
162
163
+ template <typename PixelRef1, typename PixelRef2, typename PixelResult>
164
+ using pixel_divide_t [[deprecated]] = pixel_divides_t <PixelRef1, PixelRef2, PixelResult>;
165
+
158
166
// / \ingroup PixelNumericOperations
159
167
// / \brief Performs channel-wise division by 2
160
168
// / \tparam PixelRef - models PixelConcept
0 commit comments