Rename to BOOST_BEAST_ALLOW_DEPRECATED (API Change):

API Changes:

The macro BOOST_BEAST_NO_DEPRECATED will no longer be noticed by Beast. The only way to
enable deprecated functionality is now the macro BOOST_BEAST_ALLOW_DEPRECATED which is
undefined by default. That is, all deprecated behaviour is disabled by default.

refs #1934
This commit is contained in:
Richard Hodges
2020-06-01 16:45:30 +02:00
parent 13a928a872
commit abd3b88539
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,13 @@
* Rename to BOOST_BEAST_ALLOW_DEPRECATED (API Change)
API Changes:
* The macro BOOST_BEAST_NO_DEPRECATED will no longer be noticed by Beast. The only way to
enable deprecated functionality is now the macro BOOST_BEAST_ALLOW_DEPRECATED which is
undefined by default. That is, all deprecated behaviour is disabled by default.
--------------------------------------------------------------------------------
Version 295:
* Parser body_limit is optional (API Change)

View File

@ -107,7 +107,7 @@ enum class error
/// Invalid code lengths
invalid_code_lengths,
#ifndef BOOST_BEAST_NO_DEPRECATED
#ifdef BOOST_BEAST_ALLOW_DEPRECATED
invalid_code_lenths = invalid_code_lengths,
#endif