diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-01-23 15:09:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-01-23 15:09:05 +0200 |
commit | d42ce2253e5804f6628a7aed82c9a7a754e986c5 (patch) | |
tree | 3a5691da5d2b04ee9b05b8ba135d920964e03e85 | |
parent | a01cef3acff2ef3a5b7a0035948d1fad878b4c59 (diff) |
Fix C++98 incompatibility
-rw-r--r-- | odb/mysql/query.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/odb/mysql/query.hxx b/odb/mysql/query.hxx index cbd7420..86cd698 100644 --- a/odb/mysql/query.hxx +++ b/odb/mysql/query.hxx @@ -142,13 +142,14 @@ namespace odb kind_bool }; - clause_part (kind_type k): kind (k) {} - clause_part (kind_type k, const std::string& p): kind (k), part (p) {} + clause_part (kind_type k): kind (k), bool_part (false) {} + clause_part (kind_type k, const std::string& p) + : kind (k), part (p), bool_part (false) {} clause_part (bool p): kind (kind_bool), bool_part (p) {} kind_type kind; std::string part; // If kind is param, then part is conversion expr. - bool bool_part = false; + bool bool_part; }; query_base () |