From 1ad14b18cbbc299096df9f1ff8b231c254e4fd04 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Sun, 1 Sep 2019 22:13:34 +0200 Subject: Remove inlining warning during compilation of unique store unit test with gcc 9. --- .../tests/datastore/unique_store/unique_store_test.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'vespalib') 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 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 +TestBase::TestBase() + : store(), + refStore(), + generation(1) +{ +} + +template +TestBase::~TestBase() = default; + using NumberUniqueStore = UniqueStore; using StringUniqueStore = UniqueStore; using CStringUniqueStore = UniqueStore, UniqueStoreStringComparator>, UniqueStoreStringAllocator>>; -- cgit v1.2.3