Browse Source

GCC 4.8, happy to see you're still around, causing problems.

pull/275/head
Vladimír Vondruš 7 years ago
parent
commit
69e370c4c7
  1. 8
      src/Magnum/Math/Test/PackingBatchTest.cpp

8
src/Magnum/Math/Test/PackingBatchTest.cpp

@ -336,7 +336,9 @@ template<class T> void PackingBatchTest::castUnsigned() {
{{13, 255}, {}}
};
constexpr Vector2 expectedFloat[] {
/* GCC 4.8 doesn't like constexpr here (cannot initialize aggregate of type
const Vector2 [3] with a compound literal), wtf */
const Vector2 expectedFloat[] {
{0.0f, 89.0f},
{149.0f, 22.0f},
{13.0f, 255.0f}
@ -374,7 +376,9 @@ template<class T> void PackingBatchTest::castSigned() {
{{13, 127}, {}}
};
constexpr Vector2 expectedFloat[] {
/* GCC 4.8 doesn't like constexpr here (cannot initialize aggregate of type
const Vector2 [3] with a compound literal), wtf */
const Vector2 expectedFloat[] {
{0.0f, -89.0f},
{-119.0f, 22.0f},
{13.0f, 127.0f}

Loading…
Cancel
Save