Skip to content

Commit 19ea4b7

Browse files
committed
Fixing error when constructing std::array with initializer-list.
This is a bug of g++ 4.7. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53361
1 parent 7a81479 commit 19ea4b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/topology/testKhalimskySpaceND.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ TEST_CASE( "3D periodic Khalimsky space", "[KSpace][3D][periodic]" )
902902
TEST_CASE( "2D mixed Khalimsky space", "[KSpace][2D][closed][periodic]" )
903903
{
904904
KhalimskySpaceND<2> K;
905-
const bool spaceOK = K.init( {-3, -3}, {5, 2}, { K.CLOSED, K.PERIODIC } );
905+
const bool spaceOK = K.init( {-3, -3}, {5, 2}, {{ K.CLOSED, K.PERIODIC }} );
906906
INFO( "Khalimsky space is " << K );
907907
REQUIRE( spaceOK == true );
908908

@@ -922,7 +922,7 @@ TEST_CASE( "2D mixed Khalimsky space", "[KSpace][2D][closed][periodic]" )
922922
TEST_CASE( "3D mixed Khalimsky space", "[KSpace][3D][closed][periodic][open]" )
923923
{
924924
KhalimskySpaceND<3> K;
925-
const bool spaceOK = K.init( {-3, -3, -3}, {5, 3, 1}, { K.CLOSED, K.OPEN, K.PERIODIC } );
925+
const bool spaceOK = K.init( {-3, -3, -3}, {5, 3, 1}, {{ K.CLOSED, K.OPEN, K.PERIODIC }} );
926926
INFO( "Khalimsky space is " << K );
927927
REQUIRE( spaceOK == true );
928928

0 commit comments

Comments
 (0)