From b9c172a4a39b15b13a1aeef42755808fbe3c2b51 Mon Sep 17 00:00:00 2001 From: an-tao Date: Thu, 22 Nov 2018 23:46:27 +0800 Subject: [PATCH] Add the default ctor in model classes --- drogon_ctl/templates/model_h.csp | 1 + 1 file changed, 1 insertion(+) diff --git a/drogon_ctl/templates/model_h.csp b/drogon_ctl/templates/model_h.csp index ac46b9b5..a9f78c56 100644 --- a/drogon_ctl/templates/model_h.csp +++ b/drogon_ctl/templates/model_h.csp @@ -77,6 +77,7 @@ auto cols=@@.get>("columns"); PrimaryKeyType getPrimaryKey() const; <%c++}%> {{className}}(const Row &r) noexcept; + {{className}}() = default; <%c++ for(auto col:cols)