Skip to content
Snippets Groups Projects
Commit 34999b6a authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'fstream-is_open'


6f43bcef FStream: Make (i|o)fstream::is_open function public

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !19
parents 7e9f7b7b 6f43bcef
No related branches found
No related tags found
No related merge requests found
......@@ -170,8 +170,6 @@ template <typename CharType, typename Traits = std::char_traits<CharType> >
class basic_ifstream : public std::basic_istream<CharType, Traits>,
public basic_efilebuf<CharType, Traits>
{
using basic_efilebuf<CharType, Traits>::is_open;
public:
typedef typename basic_efilebuf<CharType, Traits>::internal_buffer_type
internal_buffer_type;
......@@ -201,6 +199,8 @@ public:
void close() { this->_set_state(this->_close(), this, this); }
using basic_efilebuf<CharType, Traits>::is_open;
internal_buffer_type* rdbuf() const { return this->buf_; }
~basic_ifstream() @KWSYS_NAMESPACE@_FStream_NOEXCEPT { close(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment