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/06/19 23:22:29 UTC

[incubator-datasketches-cpp] branch tuple_sketch updated: hopefully this should fix the build

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

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


The following commit(s) were added to refs/heads/tuple_sketch by this push:
     new 70e7c8d  hopefully this should fix the build
70e7c8d is described below

commit 70e7c8daa428af0b01a5c160b2a9d5cec1a7caf0
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Fri Jun 19 16:21:33 2020 -0700

    hopefully this should fix the build
---
 tuple/test/tuple_sketch_test.cpp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tuple/test/tuple_sketch_test.cpp b/tuple/test/tuple_sketch_test.cpp
index 730cbb5..dedd016 100644
--- a/tuple/test/tuple_sketch_test.cpp
+++ b/tuple/test/tuple_sketch_test.cpp
@@ -20,12 +20,18 @@
 #include <iostream>
 #include <tuple>
 
+namespace datasketches {
+
+using three_doubles = std::tuple<double, double, double>;
+
 // this is needed for a test below, but should be defined here
-std::ostream& operator<<(std::ostream& os, const std::tuple<double, double, double>& tuple) {
+std::ostream& operator<<(std::ostream& os, const three_doubles& tuple) {
   os << std::get<0>(tuple) << ", " << std::get<1>(tuple) << ", " << std::get<2>(tuple);
   return os;
 }
 
+}
+
 #include <catch.hpp>
 #include <tuple_sketch.hpp>
 #include <test_type.hpp>
@@ -172,7 +178,6 @@ struct three_doubles_update_policy {
 };
 
 TEST_CASE("tuple sketch: array of doubles", "[tuple_sketch]") {
-  using three_doubles = std::tuple<double, double, double>;
   using three_doubles_update_tuple_sketch = update_tuple_sketch<three_doubles, three_doubles, three_doubles_update_policy>;
   auto update_sketch = three_doubles_update_tuple_sketch::builder().build();
   update_sketch.update(1, three_doubles(1, 2, 3));


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