Skip to content

Commit 1235a0d

Browse files
committed
fix compilation test
1 parent 8c4bf60 commit 1235a0d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎SlotMapTest04.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ TEST(SlotMapTest, RecursiveDeclaration)
225225
EXPECT_EQ(slotMap.get(c.right)->value, 2);
226226
}
227227

228+
// This is a compiler test - not the real unit-test
229+
#if 0
228230
TEST(SlotMapTest, CompileTimeTypeSafety)
229231
{
230232
using TSlotMapInt = dod::slot_map32<int>;
@@ -235,10 +237,9 @@ TEST(SlotMapTest, CompileTimeTypeSafety)
235237

236238
keyInt = keyInt; // OK
237239
keyFloat == keyFloat; // OK
238-
#if 0
240+
239241
// should not compile!
240242
keyInt = keyFloat;
241-
#endif
242243

243244
if (keyInt == keyInt) // OK
244245
{
@@ -248,10 +249,9 @@ TEST(SlotMapTest, CompileTimeTypeSafety)
248249
{
249250
}
250251

251-
#if 0
252252
// should not compile!
253253
if (keyInt == keyFloat)
254254
{
255255
}
256-
#endif
257-
}
256+
}
257+
#endif

0 commit comments

Comments
 (0)