From dd281fbe1e02d607bd90f23c20e827bb578a9506 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 22 Sep 2020 07:57:35 +1000 Subject: [PATCH] dset: forward only the live data for `contains` with dset --- set/dset.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set/dset.hpp b/set/dset.hpp index fea61085..79b33c00 100644 --- a/set/dset.hpp +++ b/set/dset.hpp @@ -82,7 +82,7 @@ namespace cruft::set { /// supplied store. bool contains (dset const &rhs) const { - return contains (rhs.m_data); + return contains (std::span {rhs.m_data.data (), rhs.m_size}); } std::size_t count (ValueT const &val) const