@@ -160,27 +160,6 @@ namespace Langulus::Math
160160 union { RTTI::Tag<TYPE, Traits::X, Traits::R, Traits::U> x, first, r, red, u; };
161161 };
162162
163- // Declare the rest as functions, so that they don't take up space
164- // This is necessary to work around the dependent names in TVector
165- // This will also error out, when missing (), but if you happen to
166- // call them by accident, you will get a proper compile error
167- /* void y() { static_assert(false, "1D vector doesn't have 'y' component"); }
168- void second() { static_assert(false, "1D vector doesn't have 'second' component"); }
169- void g() { static_assert(false, "1D vector doesn't have 'g' component"); }
170- void green() { static_assert(false, "1D vector doesn't have 'green' component"); }
171- void v() { static_assert(false, "1D vector doesn't have 'v' component"); }
172-
173- void z() { static_assert(false, "1D vector doesn't have 'z' component"); }
174- void third() { static_assert(false, "1D vector doesn't have 'third' component"); }
175- void b() { static_assert(false, "1D vector doesn't have 'b' component"); }
176- void blue() { static_assert(false, "1D vector doesn't have 'blue' component"); }
177- void s() { static_assert(false, "1D vector doesn't have 's' component"); }
178-
179- void w() { static_assert(false, "1D vector doesn't have 'w' component"); }
180- void fourth() { static_assert(false, "1D vector doesn't have 'fourth' component"); }
181- void a() { static_assert(false, "1D vector doesn't have 'a' component"); }
182- void alpha() { static_assert(false, "1D vector doesn't have 'alpha' component"); }
183- void t() { static_assert(false, "1D vector doesn't have 't' component"); }*/
184163 static constexpr TYPE y = static_cast <TYPE>(DEFAULT);
185164 static constexpr TYPE second = static_cast <TYPE>(DEFAULT);
186165 static constexpr TYPE g = static_cast <TYPE>(DEFAULT);
@@ -239,21 +218,6 @@ namespace Langulus::Math
239218 };
240219 };
241220
242- // Declare the rest as functions, so that they don't take up space
243- // This is necessary to work around the dependent names in TVector
244- // This will also error out, when missing (), but if you happen to
245- // call them by accident, you will get a proper compile error
246- /* void z() { static_assert(false, "2D vector doesn't have 'z' component"); }
247- void third() { static_assert(false, "2D vector doesn't have 'third' component"); }
248- void b() { static_assert(false, "2D vector doesn't have 'b' component"); }
249- void blue() { static_assert(false, "2D vector doesn't have 'blue' component"); }
250- void s() { static_assert(false, "2D vector doesn't have 's' component"); }
251-
252- void w() { static_assert(false, "2D vector doesn't have 'w' component"); }
253- void fourth() { static_assert(false, "2D vector doesn't have 'fourth' component"); }
254- void a() { static_assert(false, "2D vector doesn't have 'a' component"); }
255- void alpha() { static_assert(false, "2D vector doesn't have 'alpha' component"); }
256- void t() { static_assert(false, "2D vector doesn't have 't' component"); }*/
257221 static constexpr TYPE z = static_cast <TYPE>(DEFAULT);
258222 static constexpr TYPE third = static_cast <TYPE>(DEFAULT);
259223 static constexpr TYPE b = static_cast <TYPE>(DEFAULT);
@@ -312,15 +276,6 @@ namespace Langulus::Math
312276 };
313277 };
314278
315- // Declare the rest as functions, so that they don't take up space
316- // This is necessary to work around the dependent names in TVector
317- // This will also error out, when missing (), but if you happen to
318- // call them by accident, you will get a proper compile error
319- /* void w() { static_assert(false, "3D vector doesn't have 'w' component"); }
320- void fourth() { static_assert(false, "3D vector doesn't have 'fourth' component"); }
321- void a() { static_assert(false, "3D vector doesn't have 'a' component"); }
322- void alpha() { static_assert(false, "3D vector doesn't have 'alpha' component"); }
323- void t() { static_assert(false, "3D vector doesn't have 't' component"); }*/
324279 static constexpr TYPE w = static_cast <TYPE>(DEFAULT);
325280 static constexpr TYPE fourth = static_cast <TYPE>(DEFAULT);
326281 static constexpr TYPE a = static_cast <TYPE>(DEFAULT);
@@ -713,7 +668,7 @@ namespace Langulus::Math
713668 constexpr explicit operator bool () const noexcept ;
714669
715670 template <CT::ScalarBased N> requires (S == 1 and CT::Convertible<N, T>)
716- explicit constexpr operator N () const noexcept ;
671+ /* explicit*/ constexpr operator N () const noexcept ;
717672
718673 template <Count ALTS> requires (ALTS < S)
719674 operator TVector<T, ALTS>& () const noexcept ;
0 commit comments