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:
@@ -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>" )
|
||||
|
||||
|
||||
@@ -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>" )
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user