Add accessor function to File member of basic_file_body:

fix #1260
close #1814
This commit is contained in:
Mika Fischer
2020-01-21 10:00:49 +01:00
committed by Richard Hodges
parent 416cc40422
commit a6155ae9bf
3 changed files with 12 additions and 0 deletions

View File

@ -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:

View File

@ -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

View File

@ -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
{