mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 04:47:29 +02:00
Add accessor function to File member of basic_file_body:
fix #1260 close #1814
This commit is contained in:
committed by
Richard Hodges
parent
416cc40422
commit
a6155ae9bf
@ -1,6 +1,7 @@
|
|||||||
Version 283:
|
Version 283:
|
||||||
|
|
||||||
* ostream_buffer satisfies preconditions of DynamicBuffer_v1::commit
|
* ostream_buffer satisfies preconditions of DynamicBuffer_v1::commit
|
||||||
|
* Add accessor function to File member of basic_file_body
|
||||||
|
|
||||||
Version 282:
|
Version 282:
|
||||||
|
|
||||||
|
@ -111,6 +111,12 @@ public:
|
|||||||
/// Move assignment
|
/// Move assignment
|
||||||
value_type& operator=(value_type&& other) = default;
|
value_type& operator=(value_type&& other) = default;
|
||||||
|
|
||||||
|
/// Return the file
|
||||||
|
File& file()
|
||||||
|
{
|
||||||
|
return file_;
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns `true` if the file is open
|
/// Returns `true` if the file is open
|
||||||
bool
|
bool
|
||||||
is_open() const
|
is_open() const
|
||||||
|
@ -78,6 +78,11 @@ struct basic_file_body<file_win32>
|
|||||||
value_type(value_type&& other) = default;
|
value_type(value_type&& other) = default;
|
||||||
value_type& operator=(value_type&& other) = default;
|
value_type& operator=(value_type&& other) = default;
|
||||||
|
|
||||||
|
file_win32& file()
|
||||||
|
{
|
||||||
|
return file_;
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
is_open() const
|
is_open() const
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user