From 43627fb7ede30a0f8f42657222b803c83de50b6f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 7 Aug 2019 11:33:41 +0200 Subject: Work around bug in MSVC 16.2 Present in at least 16.2.0 and 16.2.1. --- bpkg/package.hxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 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 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) \ -- cgit v1.1