diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-02-26 14:50:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-02-26 14:50:56 +0200 |
commit | e94a902741bbafa6f60f199622465d11346b287d (patch) | |
tree | 6376921232f8c4faa490f3c5a46b78d0f352fc4b | |
parent | 0ee1e194504cc267b372e0c9316e29a9db7273d0 (diff) |
Adjust to new aggregate initialization rules in C++20
-rw-r--r-- | bdep/project.hxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bdep/project.hxx b/bdep/project.hxx index de39ee5..9f628f5 100644 --- a/bdep/project.hxx +++ b/bdep/project.hxx @@ -116,6 +116,26 @@ namespace bdep // #pragma db member(relative_path) options("COLLATE NOCASE") // #endif + public: + // Explicit aggregate initialization for C++20 (private default ctor). + // + configuration (optional_uint64_t i, + optional_string n, + dir_path p, + optional_dir_path rp, + bool d, + bool f, + bool as, + vector<package_state> ps) + : id (i), + name (move (n)), + path (move (p)), + relative_path (move (rp)), + default_ (d), + forward (f), + auto_sync (as), + packages (move (ps)) {} + private: friend class odb::access; configuration () = default; |