virtual dtor out-of-line

This commit is contained in:
Jacob Dufault 2017-03-22 10:03:45 -07:00
parent 4bdf8c825b
commit 6a72712404
2 changed files with 10 additions and 4 deletions

View File

@ -4,6 +4,12 @@
#include "../third_party/doctest/doctest/doctest.h" #include "../third_party/doctest/doctest/doctest.h"
PlatformMutex::~PlatformMutex() = default;
PlatformScopedMutexLock::~PlatformScopedMutexLock() = default;
PlatformSharedMemory::~PlatformSharedMemory() = default;
TEST_SUITE("Platform"); TEST_SUITE("Platform");
TEST_CASE("Mutex lock/unlock (single process)") { TEST_CASE("Mutex lock/unlock (single process)") {

View File

@ -4,13 +4,13 @@
#include <string> #include <string>
struct PlatformMutex { struct PlatformMutex {
virtual ~PlatformMutex() {} virtual ~PlatformMutex();
}; };
struct PlatformScopedMutexLock { struct PlatformScopedMutexLock {
virtual ~PlatformScopedMutexLock() {} virtual ~PlatformScopedMutexLock();
}; };
struct PlatformSharedMemory { struct PlatformSharedMemory {
virtual ~PlatformSharedMemory() {} virtual ~PlatformSharedMemory();
void* data; void* data;
size_t capacity; size_t capacity;
std::string name; std::string name;
@ -23,4 +23,4 @@ std::unique_ptr<PlatformSharedMemory> CreatePlatformSharedMemory(
const std::string& name, const std::string& name,
size_t size); size_t size);
std::string GetWorkingDirectory(); std::string GetWorkingDirectory();