Add accessor function to File member of basic_file_body:

fix #1260
close #1814
This commit is contained in:
Mika Fischer authored and Richard Hodges committed 2020-01-23 16:24:46 +01:00
1 parent 416cc40422
commit a6155ae9bf
3 files changed
+12

No files matched your search

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