aboutsummaryrefslogtreecommitdiff
path: root/ports/boost-outcome/0001-outcome-assert.patch
blob: 68ea5a50abbae8f2bb77c0c2bf6e127384be9284 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/include/boost/outcome/experimental/status-code/status_code_ptr.hpp     2020-04-28 09:23:14.792565200 +0100
+++ b/include/boost/outcome/experimental/status-code/status_code_ptr.hpp     2020-04-28 09:24:34.311741000 +0100
@@ -103,7 +103,7 @@
 #endif
     virtual void _do_erased_copy(status_code<void> &dst, const status_code<void> &src, size_t /*unused*/) const override  // NOLINT
     {
-      assert(dst.domain() == *this);
+      // Note that dst will not have its domain set
       assert(src.domain() == *this);
       auto &d = static_cast<_mycode &>(dst);               // NOLINT
       const auto &_s = static_cast<const _mycode &>(src);  // NOLINT