aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-01-23 15:09:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-01-23 15:09:05 +0200
commit10ef2f9ac8e6216ea1276fe9f55c70db64f1c55f (patch)
treee557e232b36d370916f81bc0b134f48b3b2dd72d
parent9578e31d99245f4519cd013006d46f1a7200acd4 (diff)
Fix C++98 incompatibility
-rw-r--r--odb/sqlite/query.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/odb/sqlite/query.hxx b/odb/sqlite/query.hxx
index 8e45c32..70e4aa1 100644
--- a/odb/sqlite/query.hxx
+++ b/odb/sqlite/query.hxx
@@ -179,13 +179,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 ()