forked from boostorg/beast
@@ -222,7 +222,9 @@ private:
|
||||
subrange<false>
|
||||
make_subrange(std::size_t pos, std::size_t n) const;
|
||||
|
||||
#ifndef BOOST_BEAST_DOXYGEN
|
||||
friend struct buffers_adaptor_test_hook;
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -41,8 +41,10 @@ namespace beast {
|
||||
class rate_policy_access
|
||||
{
|
||||
private:
|
||||
#ifndef BOOST_BEAST_DOXYGEN
|
||||
template<class, class, class>
|
||||
friend class basic_stream;
|
||||
#endif
|
||||
|
||||
template<class Policy>
|
||||
static
|
||||
@@ -101,7 +103,9 @@ private:
|
||||
*/
|
||||
class unlimited_rate_policy
|
||||
{
|
||||
#ifndef BOOST_BEAST_DOXYGEN
|
||||
friend class rate_policy_access;
|
||||
#endif
|
||||
|
||||
static std::size_t constexpr all =
|
||||
(std::numeric_limits<std::size_t>::max)();
|
||||
@@ -149,7 +153,9 @@ class unlimited_rate_policy
|
||||
*/
|
||||
class simple_rate_policy
|
||||
{
|
||||
#ifndef BOOST_BEAST_DOXYGEN
|
||||
friend class rate_policy_access;
|
||||
#endif
|
||||
|
||||
static std::size_t constexpr all =
|
||||
(std::numeric_limits<std::size_t>::max)();
|
||||
|
||||
@@ -85,9 +85,11 @@ class basic_file_body<File>::value_type
|
||||
// This body container holds a handle to the file
|
||||
// when it is open, and also caches the size when set.
|
||||
|
||||
#ifndef BOOST_BEAST_DOXYGEN
|
||||
friend class reader;
|
||||
friend class writer;
|
||||
friend struct basic_file_body;
|
||||
#endif
|
||||
|
||||
// This represents the open file
|
||||
File file_;
|
||||
|
||||
@@ -130,7 +130,9 @@ class basic_parser
|
||||
template<bool OtherIsRequest>
|
||||
friend class basic_parser;
|
||||
|
||||
#ifndef BOOST_BEAST_DOXYGEN
|
||||
friend class basic_parser_test;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
/// Default constructor
|
||||
|
||||
@@ -59,7 +59,9 @@ class basic_fields
|
||||
std::allocator_traits<Allocator>::pointer>::value,
|
||||
"Allocator must use regular pointers");
|
||||
|
||||
#ifndef BOOST_BEAST_DOXYGEN
|
||||
friend class fields_test; // for `header`
|
||||
#endif
|
||||
|
||||
struct element;
|
||||
|
||||
@@ -72,7 +74,9 @@ public:
|
||||
/// The type of element used to represent a field
|
||||
class value_type
|
||||
{
|
||||
#ifndef BOOST_BEAST_DOXYGEN
|
||||
friend class basic_fields;
|
||||
#endif
|
||||
|
||||
off_t off_;
|
||||
off_t len_;
|
||||
|
||||
@@ -139,6 +139,7 @@ class stream
|
||||
using control_cb_type =
|
||||
std::function<void(frame_type, string_view)>;
|
||||
|
||||
#ifndef BOOST_BEAST_DOXYGEN
|
||||
friend class close_test;
|
||||
friend class frame_test;
|
||||
friend class ping_test;
|
||||
@@ -153,6 +154,7 @@ class stream
|
||||
*/
|
||||
static std::size_t constexpr max_control_frame_size = 2 + 8 + 4 + 125;
|
||||
static std::size_t constexpr tcp_frame_size = 1536;
|
||||
#endif
|
||||
|
||||
static time_point never() noexcept
|
||||
{
|
||||
|
||||
@@ -54,8 +54,10 @@ struct stream_base
|
||||
{
|
||||
detail::decorator d_;
|
||||
|
||||
#ifndef BOOST_BEAST_DOXYGEN
|
||||
template<class, bool>
|
||||
friend class stream;
|
||||
#endif
|
||||
|
||||
public:
|
||||
// Move Constructor
|
||||
|
||||
Reference in New Issue
Block a user