You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2020/11/07 03:11:56 UTC

[incubator-datasketches-cpp] 01/02: MS VC++ compatibility

This is an automated email from the ASF dual-hosted git repository.

alsay pushed a commit to branch req_sketch
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-cpp.git

commit 23f82e0034653e49a2a9340bb821311fe7409bda
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Fri Nov 6 19:11:08 2020 -0800

    MS VC++ compatibility
---
 req/include/req_compactor_impl.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/req/include/req_compactor_impl.hpp b/req/include/req_compactor_impl.hpp
index 211075b..d803832 100755
--- a/req/include/req_compactor_impl.hpp
+++ b/req/include/req_compactor_impl.hpp
@@ -210,7 +210,7 @@ req_compactor<T, H, C, A> req_compactor<T, H, C, A>::deserialize(std::istream& i
   for (uint32_t i = 0; i < num_items; ++i) {
     serde.deserialize(is, item_buffer.get(), 1);
     items.push_back(std::move(*item_buffer));
-    item_buffer->~T();
+    (*item_buffer).~T();
   }
   if (!is.good()) throw std::runtime_error("error reading from std::istream");
   return req_compactor(lg_weight, coin, sorted, section_size_raw, num_sections, num_compactions, state, std::move(items));


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org