Browse Source

Update contrib/restricted/boost/ratio to 1.84.0

robot-contrib 1 year ago
parent
commit
f17f1bdca7

+ 0 - 2
.mapping.json

@@ -1762,9 +1762,7 @@
   "contrib/restricted/boost/ratio/CMakeLists.linux-x86_64.txt":"",
   "contrib/restricted/boost/ratio/CMakeLists.txt":"",
   "contrib/restricted/boost/ratio/CMakeLists.windows-x86_64.txt":"",
-  "contrib/restricted/boost/rational/CMakeLists.darwin-arm64.txt":"",
   "contrib/restricted/boost/rational/CMakeLists.darwin-x86_64.txt":"",
-  "contrib/restricted/boost/rational/CMakeLists.linux-aarch64.txt":"",
   "contrib/restricted/boost/rational/CMakeLists.linux-x86_64.txt":"",
   "contrib/restricted/boost/rational/CMakeLists.txt":"",
   "contrib/restricted/boost/rational/CMakeLists.windows-x86_64.txt":"",

+ 0 - 1
contrib/restricted/boost/CMakeLists.darwin-arm64.txt

@@ -56,7 +56,6 @@ add_subdirectory(program_options)
 add_subdirectory(random)
 add_subdirectory(range)
 add_subdirectory(ratio)
-add_subdirectory(rational)
 add_subdirectory(regex)
 add_subdirectory(smart_ptr)
 add_subdirectory(static_assert)

+ 0 - 1
contrib/restricted/boost/CMakeLists.linux-aarch64.txt

@@ -56,7 +56,6 @@ add_subdirectory(program_options)
 add_subdirectory(random)
 add_subdirectory(range)
 add_subdirectory(ratio)
-add_subdirectory(rational)
 add_subdirectory(regex)
 add_subdirectory(smart_ptr)
 add_subdirectory(static_assert)

+ 1 - 7
contrib/restricted/boost/chrono/include/boost/chrono/detail/is_evenly_divisible_by.hpp

@@ -8,18 +8,12 @@
 #ifndef BOOST_CHRONO_DETAIL_IS_EVENLY_DIVISIBLE_BY_HPP
 #define BOOST_CHRONO_DETAIL_IS_EVENLY_DIVISIBLE_BY_HPP
 
-#include <boost/chrono/config.hpp>
-
-#include <boost/mpl/logical.hpp>
-#include <boost/ratio/detail/overflow_helpers.hpp>
+#include <boost/ratio/detail/is_evenly_divisible_by.hpp>
 
 namespace boost {
 namespace chrono {
 namespace chrono_detail {
 
-//  template <class R1, class R2>
-//  struct is_evenly_divisible_by : public boost::mpl::bool_ < ratio_divide<R1, R2>::type::den == 1 >
-//  {};
   template <class R1, class R2>
   struct is_evenly_divisible_by : public boost::ratio_detail::is_evenly_divisible_by<R1, R2>
   {};

+ 1 - 1
contrib/restricted/boost/chrono/include/boost/chrono/detail/requires_cxx11.hpp

@@ -16,7 +16,7 @@
     defined(BOOST_NO_CXX11_HDR_CHRONO) || \
     defined(BOOST_NO_CXX11_HDR_RATIO)
 
-BOOST_PRAGMA_MESSAGE("C++03 support was deprecated in Boost.Chrono 1.82 and will be removed in Boost.Chrono 1.84.")
+BOOST_PRAGMA_MESSAGE("C++03 support was deprecated in Boost.Chrono 1.82 and was removed in Boost.Chrono 1.84.")
 
 #endif
 

+ 1 - 0
contrib/restricted/boost/chrono/include/boost/chrono/duration.hpp

@@ -39,6 +39,7 @@ time2_demo contained this comment:
 
 #include <boost/mpl/logical.hpp>
 #include <boost/ratio/ratio.hpp>
+#include <boost/ratio/detail/is_ratio.hpp>
 #include <boost/type_traits/common_type.hpp>
 #include <boost/type_traits/is_arithmetic.hpp>
 #include <boost/type_traits/is_convertible.hpp>

+ 1 - 0
contrib/restricted/boost/chrono/include/boost/chrono/io/duration_units.hpp

@@ -10,6 +10,7 @@
 
 #include <boost/chrono/config.hpp>
 #include <boost/ratio/ratio_io.hpp>
+#include <boost/ratio/config.hpp>
 #include <boost/chrono/duration.hpp>
 #include <boost/chrono/io/duration_style.hpp>
 #include <boost/chrono/io/ios_base_state.hpp>

+ 1 - 0
contrib/restricted/boost/chrono/include/boost/chrono/system_clocks.hpp

@@ -63,6 +63,7 @@ TODO:
 #include <boost/chrono/time_point.hpp>
 #include <boost/chrono/detail/system.hpp>
 #include <boost/chrono/clock_string.hpp>
+#include <boost/ratio/config.hpp>
 
 #include <ctime>
 

+ 4 - 2
contrib/restricted/boost/chrono/src/chrono.cpp

@@ -6,10 +6,12 @@
 //  Distributed under the Boost Software License, Version 1.0.
 //  See http://www.boost.org/LICENSE_1_0.txt
 
-// define BOOST_CHRONO_SOURCE so that <boost/filesystem/config.hpp> knows
+// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
 // the library is being built (possibly exporting rather than importing code)
 
-#define BOOST_CHRONO_SOURCE
+#ifndef BOOST_CHRONO_SOURCE
+# define BOOST_CHRONO_SOURCE
+#endif
 
 #include <boost/chrono/detail/inlined/chrono.hpp>
 

+ 3 - 1
contrib/restricted/boost/chrono/src/process_cpu_clocks.cpp

@@ -12,7 +12,9 @@
 // define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
 // the library is being built (possibly exporting rather than importing code)
 
-#define BOOST_CHRONO_SOURCE
+#ifndef BOOST_CHRONO_SOURCE
+# define BOOST_CHRONO_SOURCE
+#endif
 
 #include <boost/chrono/detail/inlined/process_cpu_clocks.hpp>
 

Some files were not shown because too many files changed in this diff