]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/utility/test/string_view_constexpr_test1.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / utility / test / string_view_constexpr_test1.cpp
index 014ef1ea58fa50c11a403979b6b0ec171375c512..615d600ca4bfe69bbeb3d57156f7d53400f535b7 100644 (file)
 #include <boost/config.hpp>
 #include <boost/utility/string_view.hpp>
 
-#define BOOST_TEST_MAIN
-#include <boost/test/unit_test.hpp>
-
-
-#if __cplusplus < 201402L
-BOOST_AUTO_TEST_CASE( test_main ) {}
-#else
-
+#if __cplusplus >= 201402L
 struct constexpr_char_traits
 {
     typedef char                   char_type;
@@ -78,7 +71,7 @@ constexpr size_t constexpr_char_traits::length(const char_type* s) noexcept
 
 typedef boost::basic_string_view<char, constexpr_char_traits> string_view;
 
-BOOST_AUTO_TEST_CASE( test_main )
+int main()
 {
     constexpr string_view sv1;
     constexpr string_view sv2{"abc", 3}; // ptr, len