summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-06-29 00:34:44 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-06-29 00:34:44 +0100
commit3f866225f104b99591720c3acfed92279813b3df (patch)
tree2e4e2b755b503f3847f9e74faad65fcd76a03c56 /lib
parentAdd constructor required by clang (diff)
downloadmygrate-3f866225f104b99591720c3acfed92279813b3df.tar.bz2
mygrate-3f866225f104b99591720c3acfed92279813b3df.tar.xz
mygrate-3f866225f104b99591720c3acfed92279813b3df.zip
Add missing virtual destructor
Diffstat (limited to 'lib')
-rw-r--r--lib/output/pq/typeMapper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/output/pq/typeMapper.h b/lib/output/pq/typeMapper.h
index 7005e4f..fddd9e2 100644
--- a/lib/output/pq/typeMapper.h
+++ b/lib/output/pq/typeMapper.h
@@ -20,6 +20,7 @@ namespace MyGrate::Output::Pq {
};
struct Mapping {
+ virtual ~Mapping() = default;
virtual std::optional<std::string_view> map(std::string_view t, std::string_view n) const = 0;
};
using MappingPtr = std::unique_ptr<Mapping>;