@@ -110,26 +110,26 @@ namespace Langulus::Math
110
110
111
111
if (not initialized) {
112
112
// Attempt converting from any other kinds of numbers
113
- Typelists::Arithmetic::ForEachOr ([this , &initialized, &describe ]<class AS >() {
113
+ Typelists::Arithmetic::ForEachOr ([& ]<class AS >{
114
114
if constexpr (not CT::Similar<InnerT, AS>) {
115
- AS all_as[this -> MemberCount ];
115
+ AS all_as[MemberCount];
116
116
initialized = describe->ExtractData (all_as);
117
117
if (initialized) {
118
- if constexpr (this -> IsReal and CT::Integer<AS>) {
118
+ if constexpr (IsReal and CT::Integer<AS>) {
119
119
// If we're initializing real color using integers,
120
120
// we have to divide by 255 and saturate (TODO)
121
- SIMD::Convert<this -> Default >(all_as, this ->all );
121
+ SIMD::Convert<Default>(all_as, this ->all );
122
122
*this /= InnerT {255 };
123
123
}
124
- else if constexpr (not this -> IsReal and CT::Real<AS>) {
124
+ else if constexpr (not IsReal and CT::Real<AS>) {
125
125
// If we're initializing integer color using reals,
126
126
// we have to multiply by 255 and saturate
127
127
SIMD::Multiply (all_as, AS {255 }, all_as);
128
128
SIMD::Min (all_as, InnerT {255 }, all_as);
129
129
SIMD::Max (all_as, InnerT {0 }, all_as);
130
- SIMD::Convert<this -> Default >(all_as, this ->all );
130
+ SIMD::Convert<Default>(all_as, this ->all );
131
131
}
132
- else SIMD::Convert<this -> Default >(all_as, this ->all );
132
+ else SIMD::Convert<Default>(all_as, this ->all );
133
133
}
134
134
return initialized > 0 ;
135
135
}
0 commit comments