We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc21ad6 commit 6c913baCopy full SHA for 6c913ba
glm/detail/type_vec4.inl
@@ -365,27 +365,27 @@ namespace detail
365
366
# if GLM_LANG & GLM_LANG_CXX14_FLAG || GLM_LANG & GLM_LANG_CXX17_FLAG
367
# if GLM_LANG & GLM_LANG_CXX20_FLAG
368
- if (std::is_constant_evaluated())
369
- {
+ if (std::is_constant_evaluated())
+ {
370
# endif
371
- switch (i)
372
373
- default:
374
- case 0:
375
- return x;
376
- case 1:
377
- return y;
378
- case 2:
379
- return z;
380
- case 3:
381
- return w;
382
- }
383
-# if GLM_LANG & GLM_LANG_CXX20_FLAG
384
385
- else
+ switch (i)
386
{
387
- return (&x)[i];
+ default:
+ case 0:
+ return x;
+ case 1:
+ return y;
+ case 2:
+ return z;
+ case 3:
+ return w;
388
}
+# if GLM_LANG & GLM_LANG_CXX20_FLAG
+ }
+ else
+ return (&x)[i];
389
390
# else
391
return (&x)[i];
0 commit comments