]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/histogram/test/deduction_guides_test.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / histogram / test / deduction_guides_test.cpp
index 2bd0f8bcbe7e1e7d210807b121a25d628a6e8ba8..d70d5825ebf5ba5eab2f4a2cbd693ff570dcd310 100644 (file)
@@ -24,8 +24,6 @@ namespace tr = axis::transform;
 
 // tests requires a C++17 compatible compiler
 
-#define TEST BOOST_TEST_TRAIT_SAME
-
 int main() {
   using axis::null_type;
 
@@ -84,6 +82,12 @@ int main() {
     BOOST_TEST_TRAIT_SAME(decltype(category({1, 2}, 0)), category<int, int>);
   }
 
+  {
+    using axis::boolean;
+    BOOST_TEST_TRAIT_SAME(decltype(boolean{}), boolean<null_type>);
+    BOOST_TEST_TRAIT_SAME(decltype(boolean{"foo"}), boolean<std::string>);
+  }
+
   {
     auto h = histogram(axis::regular(3, -1, 1), axis::integer(0, 4));
     BOOST_TEST_TRAIT_SAME(decltype(h),