diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-07 11:33:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-07 11:33:41 +0200 |
commit | 43627fb7ede30a0f8f42657222b803c83de50b6f (patch) | |
tree | a81e220fe8e193d680f63811e687dc171adeb536 | |
parent | 8741fa1d4555aaf17b08fd478a2bd2fb798756f0 (diff) |
Work around bug in MSVC 16.2
Present in at least 16.2.0 and 16.2.1.
-rw-r--r-- | bpkg/package.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bpkg/package.hxx b/bpkg/package.hxx index 3ac48a6..74021c7 100644 --- a/bpkg/package.hxx +++ b/bpkg/package.hxx @@ -106,6 +106,16 @@ namespace bpkg uint32_t iteration; string upstream; optional<string> release; + + // @@ TMP: work around MSVC 16.2 bug. + // + _version () = default; + _version (uint16_t e, + string cu, string cr, + uint16_t rv, uint32_t i, string u, optional<string> rl) + : epoch (e), + canonical_upstream (cu), canonical_release (cr), + revision (rv), iteration (i), upstream (u), release (rl) {} }; } @@ -229,6 +239,12 @@ namespace bpkg { repository_url url; repository_type type; + + // @@ TMP: work around MSVC 16.2 bug. + // + _repository_location () = default; + _repository_location (repository_url u, repository_type t) + : url (move (u)), type (t) {} }; #pragma db map type(repository_url) as(string) \ |