-Wold-style-cast; linked list items made noncopyable

This commit is contained in:
Pavel Kirienko
2016-07-29 16:46:57 +03:00
parent 32d8851dde
commit c9ec822244
12 changed files with 48 additions and 32 deletions
+5 -1
View File
@@ -102,7 +102,11 @@ TEST(LinkedList, Basic)
TEST(LinkedList, Sorting)
{
uavcan::LinkedListRoot<ListItem> root;
ListItem items[] = {0, 1, 2, 3, 4, 5};
ListItem items[6];
for (int i = 0; i < 6; i++)
{
items[i].value = i;
}
EXPECT_EQ(0, root.getLength());