Skip to content

Commit

Permalink
Trade: hi, MSVC 2015, you ancient curse.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Sep 3, 2021
1 parent df7f81a commit 9a8c22b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Magnum/Trade/Test/SceneDataTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ void SceneDataTest::constructField() {
CORRADE_COMPARE(rotations.objectData(someArray).stride(), sizeof(UnsignedShort));
CORRADE_VERIFY(rotations.objectData(someArray).data() == rotationObjectData);

#ifndef CORRADE_MSVC2015_COMPATIBILITY /* Won't bother anymore */
constexpr SceneFieldData crotations{SceneField::Rotation, Containers::arrayView(RotationObjects2D), Containers::arrayView(Rotations2D)};
constexpr bool isOffsetOnly = crotations.isOffsetOnly();
constexpr SceneField name = crotations.name();
Expand All @@ -467,6 +468,7 @@ void SceneDataTest::constructField() {
CORRADE_COMPARE(fieldData.size(), 3);
CORRADE_COMPARE(fieldData.stride(), sizeof(Complexd));
CORRADE_COMPARE(fieldData.data(), Rotations2D);
#endif
}

void SceneDataTest::constructFieldDefault() {
Expand Down

0 comments on commit 9a8c22b

Please sign in to comment.