mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +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:
|
||||
|
||||
* ostream_buffer satisfies preconditions of DynamicBuffer_v1::commit
|
||||
* Add accessor function to File member of basic_file_body
|
||||
|
||||
Version 282:
|
||||
|
||||
|
@ -111,6 +111,12 @@ public:
|
||||
/// Move assignment
|
||||
value_type& operator=(value_type&& other) = default;
|
||||
|
||||
/// Return the file
|
||||
File& file()
|
||||
{
|
||||
return file_;
|
||||
}
|
||||
|
||||
/// Returns `true` if the file is open
|
||||
bool
|
||||
is_open() const
|
||||
|
@ -78,6 +78,11 @@ struct basic_file_body<file_win32>
|
||||
value_type(value_type&& other) = default;
|
||||
value_type& operator=(value_type&& other) = default;
|
||||
|
||||
file_win32& file()
|
||||
{
|
||||
return file_;
|
||||
}
|
||||
|
||||
bool
|
||||
is_open() const
|
||||
{
|
||||
|
Reference in New Issue
Block a user