Remove inlining warning during compilation of unique store unit
test with gcc 9.
@@ -31,11 +31,8 @@ struct TestBase : public ::testing::Test {
static std::vector<ValueType> values;
- TestBase()
- : store(),
- refStore(),
- generation(1)
- {}
+ TestBase();
+ ~TestBase() override;
void assertAdd(ValueConstRefType input) {
EntryRef ref = add(input);
assertGet(ref, input);
@@ -132,6 +129,17 @@ struct TestBase : public ::testing::Test {
}
};
+template <typename UniqueStoreT>
+TestBase<UniqueStoreT>::TestBase()
+ : store(),
+ refStore(),
+ generation(1)
+{
+}
+
+template <typename UniqueStoreT>
+TestBase<UniqueStoreT>::~TestBase() = default;
+
using NumberUniqueStore = UniqueStore<uint32_t>;
using StringUniqueStore = UniqueStore<std::string>;
using CStringUniqueStore = UniqueStore<const char *, EntryRefT<22>, UniqueStoreStringComparator<EntryRefT<22>>, UniqueStoreStringAllocator<EntryRefT<22>>>;
