Add wxNOEXCEPT and use it for std::streambuf-derived classes.
This fixes warnings from Intel compiler about overriding function using a different exception specification than the base one and also incidentally provides a handy macro that can be useful in other situations. Closes #14826. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -28,7 +28,7 @@ class WXDLLIMPEXP_BASE wxStdInputStreamBuffer : public std::streambuf
|
||||
{
|
||||
public:
|
||||
wxStdInputStreamBuffer(wxInputStream& stream);
|
||||
virtual ~wxStdInputStreamBuffer() { }
|
||||
virtual ~wxStdInputStreamBuffer() wxNOEXCEPT { }
|
||||
|
||||
protected:
|
||||
virtual std::streambuf *setbuf(char *s, std::streamsize n);
|
||||
@@ -71,7 +71,7 @@ class WXDLLIMPEXP_BASE wxStdInputStream : public std::istream
|
||||
{
|
||||
public:
|
||||
wxStdInputStream(wxInputStream& stream);
|
||||
virtual ~wxStdInputStream() { }
|
||||
virtual ~wxStdInputStream() wxNOEXCEPT { }
|
||||
|
||||
protected:
|
||||
wxStdInputStreamBuffer m_streamBuffer;
|
||||
@@ -85,7 +85,7 @@ class WXDLLIMPEXP_BASE wxStdOutputStreamBuffer : public std::streambuf
|
||||
{
|
||||
public:
|
||||
wxStdOutputStreamBuffer(wxOutputStream& stream);
|
||||
virtual ~wxStdOutputStreamBuffer() { }
|
||||
virtual ~wxStdOutputStreamBuffer() wxNOEXCEPT { }
|
||||
|
||||
protected:
|
||||
virtual std::streambuf *setbuf(char *s, std::streamsize n);
|
||||
@@ -112,7 +112,7 @@ class WXDLLIMPEXP_BASE wxStdOutputStream : public std::ostream
|
||||
{
|
||||
public:
|
||||
wxStdOutputStream(wxOutputStream& stream);
|
||||
virtual ~wxStdOutputStream() { }
|
||||
virtual ~wxStdOutputStream() wxNOEXCEPT { }
|
||||
|
||||
protected:
|
||||
wxStdOutputStreamBuffer m_streamBuffer;
|
||||
|
Reference in New Issue
Block a user