2
0
mirror of https://github.com/boostorg/timer.git synced 2026-01-19 04:42:13 +00:00

Disable deprecated headers unless BOOST_TIMER_ENABLE_DEPRECATED is defined

This commit is contained in:
Peter Dimov
2023-04-21 01:30:51 +03:00
parent 0254b6a68b
commit 85b2642a42
3 changed files with 10 additions and 0 deletions

View File

@@ -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/config/header_deprecated.hpp>
BOOST_HEADER_DEPRECATED( "the facilities in <boost/timer/timer.hpp> or <boost/timer/progress_display.hpp>" )

View File

@@ -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/config/header_deprecated.hpp>
BOOST_HEADER_DEPRECATED( "the facilities in <boost/timer/timer.hpp>" )

View File

@@ -12,6 +12,8 @@
// 16 Jul 99 Second beta
// 6 Jul 99 Initial boost version
#define BOOST_TIMER_ENABLE_DEPRECATED
#include <boost/progress.hpp>
#include <iostream>
#include <climits>