Browse Source

FFS BUILD

undefined
Benjamin ‘Touky’ Huet Sam Hocevar <sam@hocevar.net> 10 years ago
parent
commit
e05b399514
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      src/lol/base/array.h
  2. +2
    -0
      src/t/base/array.cpp

+ 2
- 0
src/lol/base/array.h View File

@@ -481,6 +481,7 @@ public:
}
++this->m_count;
}
/*
inline void Insert(ptrdiff_t pos, T... args)
{
//ASSERT(pos >= 0);
@@ -497,6 +498,7 @@ public:
new (&this->m_data[pos]) tuple<T...>({ args... });
++this->m_count;
}
*/
};

template<typename T>


+ 2
- 0
src/t/base/array.cpp View File

@@ -189,6 +189,7 @@ lolunit_declare_fixture(ArrayTest)
lolunit_assert_equal(2, a[3]);
lolunit_assert_equal(6, a[4]);

/*
array<int, int, int> b;
b.Insert(0, 5, 6, 7);
lolunit_assert_equal(5, b[0].m1);
@@ -213,6 +214,7 @@ lolunit_declare_fixture(ArrayTest)
lolunit_assert_equal(8, b[2].m1);
lolunit_assert_equal(9, b[2].m2);
lolunit_assert_equal(6, b[2].m3);
*/
}

lolunit_declare_test(ArrayConcat)


Loading…
Cancel
Save