mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-10 15:44:07 +00:00
Deprecate C++03 in Boost 1.73 (#689)
Following discussion in #590, we are identifying support for C++03 as a candidate for removal from future releases of Boost.Geometry. Issue deprecation warning during compilation in C++03 conformance mode Users can define BOOST_GEOMETRY_DISABLE_DEPRECATED_03_WARNING to disable it.
This commit is contained in:
parent
201530285a
commit
2dbe5bf554
@ -1,5 +1,7 @@
|
|||||||
# 
|
# 
|
||||||
|
|
||||||
|
> **CAUTION**: Boost.Geometry in Boost 1.73 deprecates support for the C++03 and will require C++14 from Boost 1.75 onwards (see issue [#590](https://github.com/boostorg/geometry/issues/590)).
|
||||||
|
|
||||||
Boost.Geometry, part of collection of the [Boost C++ Libraries](http://github.com/boostorg), defines concepts, primitives and algorithms for solving geometry problems.
|
Boost.Geometry, part of collection of the [Boost C++ Libraries](http://github.com/boostorg), defines concepts, primitives and algorithms for solving geometry problems.
|
||||||
|
|
||||||
[](http://www.boost.org/LICENSE_1_0.txt)
|
[](http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
[def __msvc__ MSVC]
|
[def __msvc__ MSVC]
|
||||||
[def __stlport__ [@http://sourceforge.net/projects/stlport STLport]]
|
[def __stlport__ [@http://sourceforge.net/projects/stlport STLport]]
|
||||||
|
|
||||||
|
[caution Boost.Geometry in Boost 1.73 deprecates support for the C++03 and will require C++14 from Boost 1.75 onwards]
|
||||||
|
|
||||||
__boost_geometry__ is a headers-only library. Users only need to include the
|
__boost_geometry__ is a headers-only library. Users only need to include the
|
||||||
library headers in their programs in order to be able to access definitions
|
library headers in their programs in order to be able to access definitions
|
||||||
and algorithms provided by the __boost_geometry__ library. No linking against
|
and algorithms provided by the __boost_geometry__ library. No linking against
|
||||||
|
@ -20,6 +20,15 @@
|
|||||||
#ifndef BOOST_GEOMETRY_GEOMETRY_HPP
|
#ifndef BOOST_GEOMETRY_GEOMETRY_HPP
|
||||||
#define BOOST_GEOMETRY_GEOMETRY_HPP
|
#define BOOST_GEOMETRY_GEOMETRY_HPP
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
#include <boost/config/pragma_message.hpp>
|
||||||
|
#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || defined(BOOST_NO_CXX11_HDR_MEMORY)
|
||||||
|
#if !defined(BOOST_GEOMETRY_DISABLE_DEPRECATED_03_WARNING)
|
||||||
|
BOOST_PRAGMA_MESSAGE("CAUTION: Boost.Geometry in Boost 1.73 deprecates support for the C++03 and will require C++14 from Boost 1.75 onwards.")
|
||||||
|
BOOST_PRAGMA_MESSAGE("CAUTION: Define BOOST_GEOMETRY_DISABLE_DEPRECATED_03_WARNING to suppress this message.")
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// Shortcut to include all header files
|
// Shortcut to include all header files
|
||||||
|
|
||||||
#include <boost/geometry/core/closure.hpp>
|
#include <boost/geometry/core/closure.hpp>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user