void-packages/srcpkgs/boost/patches/timer-deprecated.patch

61 lines
1.9 KiB
Diff

--- a/libs/crc/test/crc_test.cpp
+++ b/libs/crc/test/crc_test.cpp
@@ -21,6 +21,7 @@
#include <boost/integer.hpp> // for boost::uint_t
#include <boost/random/linear_congruential.hpp> // for boost::minstd_rand
#include <boost/core/lightweight_test.hpp>
+#define BOOST_TIMER_ENABLE_DEPRECATED
#include <boost/timer.hpp> // for boost::timer
#include <algorithm> // for std::for_each, std::generate_n, std::count
--- a/libs/function_types/example/fast_mem_fn_example.cpp
+++ b/libs/function_types/example/fast_mem_fn_example.cpp
@@ -13,6 +13,7 @@
#include <algorithm>
#include <functional>
+#define BOOST_TIMER_ENABLE_DEPRECATED
#include <boost/timer.hpp>
#include <boost/mem_fn.hpp>
--- a/libs/graph/example/fr_layout.cpp
+++ b/libs/graph/example/fr_layout.cpp
@@ -15,6 +15,7 @@
#include <iostream>
#include <map>
#include <vector>
+#define BOOST_TIMER_ENABLE_DEPRECATED
#include <boost/random/linear_congruential.hpp>
#include <boost/progress.hpp>
#include <boost/shared_ptr.hpp>
--- a/libs/program_options/test/test_convert.cpp
+++ b/libs/program_options/test/test_convert.cpp
@@ -9,6 +9,7 @@
#include <fstream>
#include <sstream>
#include <iostream>
+#define BOOST_TIMER_ENABLE_DEPRECATED
#include <boost/progress.hpp>
#include <boost/bind.hpp>
#include <boost/ref.hpp>
--- a/libs/regex/example/timer/regex_timer.cpp
+++ b/libs/regex/example/timer/regex_timer.cpp
@@ -16,6 +16,7 @@
#include <boost/config.hpp>
#include <boost/regex.hpp>
#include <boost/cregex.hpp>
+#define BOOST_TIMER_ENABLE_DEPRECATED
#include <boost/timer.hpp>
#include <boost/smart_ptr.hpp>
--- a/libs/regex/test/static_mutex/static_mutex_test.cpp
+++ b/libs/regex/test/static_mutex/static_mutex_test.cpp
@@ -18,6 +18,7 @@
#include <boost/regex/pending/static_mutex.hpp>
#include <boost/thread/thread.hpp>
+#define BOOST_TIMER_ENABLE_DEPRECATED
#include <boost/timer.hpp>
#include <iostream>
#include <iomanip>