]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/stl_interfaces/test/array.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / stl_interfaces / test / array.cpp
index 66b34d51d09bdc394ef02d8b20ebe00a5f7c711a..bd334e98ee0443e40c5c8658e52a3971654f4560 100644 (file)
@@ -19,7 +19,7 @@
 template<typename T, std::size_t N>
 struct array : boost::stl_interfaces::sequence_container_interface<
                    array<T, N>,
-                   boost::stl_interfaces::v1::element_layout::contiguous>
+                   boost::stl_interfaces::element_layout::contiguous>
 {
     using value_type = T;
     using pointer = T *;
@@ -52,7 +52,7 @@ struct array : boost::stl_interfaces::sequence_container_interface<
 
     using base_type = boost::stl_interfaces::sequence_container_interface<
         array<T, N>,
-        boost::stl_interfaces::v1::element_layout::contiguous>;
+        boost::stl_interfaces::element_layout::contiguous>;
     using base_type::begin;
     using base_type::end;
 
@@ -525,10 +525,7 @@ using insert_il_t = decltype(std::declval<Container &>().insert(
 static_assert(ill_formed<lvalue_insert_t, arr_type>::value, "");
 static_assert(ill_formed<rvalue_insert_t, arr_type>::value, "");
 
-// TODO: Broken in v1.  Adding the proper constraint ICE's GCC 8, or
-// infinitely recurses within the compiler for GCC and Clang, depending on the
-// constraint technique used.
-#if 0
+#if defined(__cpp_lib_concepts)
 static_assert(ill_formed<insert_n_t, arr_type>::value, "");
 #endif