diff --git a/include/boost/progress.hpp b/include/boost/progress.hpp index 586ef8bf..c07323a9 100644 --- a/include/boost/progress.hpp +++ b/include/boost/progress.hpp @@ -19,6 +19,10 @@ #ifndef BOOST_PROGRESS_HPP #define BOOST_PROGRESS_HPP +#if !defined(BOOST_TIMER_ENABLE_DEPRECATED) +# error This header is deprecated and will be removed. (You can define BOOST_TIMER_ENABLE_DEPRECATED to suppress this error.) +#endif + #include BOOST_HEADER_DEPRECATED( "the facilities in or " ) diff --git a/include/boost/timer.hpp b/include/boost/timer.hpp index f3ddb41f..49fd9989 100644 --- a/include/boost/timer.hpp +++ b/include/boost/timer.hpp @@ -17,6 +17,10 @@ #ifndef BOOST_TIMER_HPP #define BOOST_TIMER_HPP +#if !defined(BOOST_TIMER_ENABLE_DEPRECATED) +# error This header is deprecated and will be removed. (You can define BOOST_TIMER_ENABLE_DEPRECATED to suppress this error.) +#endif + #include BOOST_HEADER_DEPRECATED( "the facilities in " ) diff --git a/test/original_timer_test.cpp b/test/original_timer_test.cpp index c76c8ade..dd6b68f6 100644 --- a/test/original_timer_test.cpp +++ b/test/original_timer_test.cpp @@ -12,6 +12,8 @@ // 16 Jul 99 Second beta // 6 Jul 99 Initial boost version +#define BOOST_TIMER_ENABLE_DEPRECATED + #include #include #include