diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-09-01 22:13:34 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-09-01 22:13:34 +0200 |
commit | 1ad14b18cbbc299096df9f1ff8b231c254e4fd04 (patch) | |
tree | ea056676581171c487a4f54a4dc94c150d3a29ef /vespalib | |
parent | 4fbe8e1b9f448ada9fbe3a6c5b532440282a3f51 (diff) |
Remove inlining warning during compilation of unique store unit
test with gcc 9.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/datastore/unique_store/unique_store_test.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/vespalib/src/tests/datastore/unique_store/unique_store_test.cpp b/vespalib/src/tests/datastore/unique_store/unique_store_test.cpp index bde7e3b9f0a..a1a24247b3f 100644 --- a/vespalib/src/tests/datastore/unique_store/unique_store_test.cpp +++ b/vespalib/src/tests/datastore/unique_store/unique_store_test.cpp @@ -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>>>; |