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 | 09e75b5f4887e293298060f68fa58f470062c552 (patch) | |
tree | 97235be3a802ffd13d71c5b84987eb3e6c151942 | |
parent | e8b8a73236ee1fa30028cdb291706f9c4c6865f7 (diff) |
Fix C++98 incompatibility
-rw-r--r-- | odb/pgsql/query.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/odb/pgsql/query.hxx b/odb/pgsql/query.hxx index d880111..9489929 100644 --- a/odb/pgsql/query.hxx +++ b/odb/pgsql/query.hxx @@ -149,13 +149,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 () |