mirror of
https://github.com/reactos/CMake.git
synced 2024-12-01 15:30:40 +00:00
KWSys 2017-03-28 (34999b6a)
Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 34999b6ab815d1456818f4517338a15be7f89ea0 (master). Upstream Shortlog ----------------- Daniel Pfeifer (1): 6f43bcef FStream: Make (i|o)fstream::is_open function public
This commit is contained in:
parent
fda80fde76
commit
e9c5505bf9
@ -170,8 +170,6 @@ template <typename CharType, typename Traits = std::char_traits<CharType> >
|
|||||||
class basic_ifstream : public std::basic_istream<CharType, Traits>,
|
class basic_ifstream : public std::basic_istream<CharType, Traits>,
|
||||||
public basic_efilebuf<CharType, Traits>
|
public basic_efilebuf<CharType, Traits>
|
||||||
{
|
{
|
||||||
using basic_efilebuf<CharType, Traits>::is_open;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
typedef typename basic_efilebuf<CharType, Traits>::internal_buffer_type
|
typedef typename basic_efilebuf<CharType, Traits>::internal_buffer_type
|
||||||
internal_buffer_type;
|
internal_buffer_type;
|
||||||
@ -201,6 +199,8 @@ public:
|
|||||||
|
|
||||||
void close() { this->_set_state(this->_close(), this, this); }
|
void close() { this->_set_state(this->_close(), this, this); }
|
||||||
|
|
||||||
|
using basic_efilebuf<CharType, Traits>::is_open;
|
||||||
|
|
||||||
internal_buffer_type* rdbuf() const { return this->buf_; }
|
internal_buffer_type* rdbuf() const { return this->buf_; }
|
||||||
|
|
||||||
~basic_ifstream() @KWSYS_NAMESPACE@_FStream_NOEXCEPT { close(); }
|
~basic_ifstream() @KWSYS_NAMESPACE@_FStream_NOEXCEPT { close(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user