mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 06:44:39 +02:00
Some basic_fields special members are protected
This commit is contained in:
@@ -4,6 +4,7 @@ Version 140:
|
|||||||
* Fix utf8_checker test failures
|
* Fix utf8_checker test failures
|
||||||
* Fix signature for async_read_some, and tests
|
* Fix signature for async_read_some, and tests
|
||||||
* Tidy up basic_parser
|
* Tidy up basic_parser
|
||||||
|
* Some basic_fields special members are protected
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -230,6 +230,26 @@ class basic_parser
|
|||||||
state state_ = state::nothing_yet; // initial state
|
state state_ = state::nothing_yet; // initial state
|
||||||
unsigned f_ = 0; // flags
|
unsigned f_ = 0; // flags
|
||||||
|
|
||||||
|
protected:
|
||||||
|
/// Default constructor
|
||||||
|
basic_parser() = default;
|
||||||
|
|
||||||
|
/// Move constructor
|
||||||
|
basic_parser(basic_parser &&) = default;
|
||||||
|
|
||||||
|
/// Move assignment
|
||||||
|
basic_parser& operator=(basic_parser &&) = default;
|
||||||
|
|
||||||
|
/** Move constructor
|
||||||
|
|
||||||
|
@note
|
||||||
|
|
||||||
|
After the move, the only valid operation on the
|
||||||
|
moved-from object is destruction.
|
||||||
|
*/
|
||||||
|
template<class OtherDerived>
|
||||||
|
basic_parser(basic_parser<isRequest, OtherDerived>&&);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/// `true` if this parser parses requests, `false` for responses.
|
/// `true` if this parser parses requests, `false` for responses.
|
||||||
using is_request =
|
using is_request =
|
||||||
@@ -241,26 +261,9 @@ public:
|
|||||||
/// Copy constructor
|
/// Copy constructor
|
||||||
basic_parser(basic_parser const&) = delete;
|
basic_parser(basic_parser const&) = delete;
|
||||||
|
|
||||||
/// Move constructor
|
|
||||||
basic_parser(basic_parser &&) = default;
|
|
||||||
|
|
||||||
/// Move assignment
|
|
||||||
basic_parser& operator=(basic_parser &&) = default;
|
|
||||||
|
|
||||||
/// Copy assignment
|
/// Copy assignment
|
||||||
basic_parser& operator=(basic_parser const&) = delete;
|
basic_parser& operator=(basic_parser const&) = delete;
|
||||||
|
|
||||||
/// Default constructor
|
|
||||||
basic_parser() = default;
|
|
||||||
|
|
||||||
/** Move constructor
|
|
||||||
|
|
||||||
After the move, the only valid operation on the
|
|
||||||
moved-from object is destruction.
|
|
||||||
*/
|
|
||||||
template<class OtherDerived>
|
|
||||||
basic_parser(basic_parser<isRequest, OtherDerived>&&);
|
|
||||||
|
|
||||||
/** Returns a reference to this object as a @ref basic_parser.
|
/** Returns a reference to this object as a @ref basic_parser.
|
||||||
|
|
||||||
This is used to pass a derived class where a base class is
|
This is used to pass a derived class where a base class is
|
||||||
|
Reference in New Issue
Block a user