summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-23 04:53:40 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-23 04:53:40 +0000
commit5473f49ff647c27041118a0715c4a515545cafe9 (patch)
treeebd9840fa76b245e31c38798cb979de341d18f35 /libstdc++-v3
parenta5bd34f1bb0408e6474c1df3a9845dac09ef7d4c (diff)
downloadgcc-5473f49ff647c27041118a0715c4a515545cafe9.tar.gz
* include/bits/ios_base.h (ios_base::failure::~failure,
ios_base::failure::what): Move defintion to ... * src/ios.cc (ios_base::failure::~failure): ... here. src/ios.cc (ios::failure::what): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37684 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog8
-rw-r--r--libstdc++-v3/include/bits/ios_base.h8
-rw-r--r--libstdc++-v3/src/ios.cc7
3 files changed, 19 insertions, 4 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index bc9df97acfa..caaf9fef096 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,11 @@
+2000-11-23 Gabriel Dos Reis <gdr@codesourcery.com>
+
+ * include/bits/ios_base.h (ios_base::failure::~failure,
+ ios_base::failure::what): Move defintion to ...
+
+ * src/ios.cc (ios_base::failure::~failure): ... here.
+ src/ios.cc (ios::failure::what): Likewise.
+
2000-11-22 Richard Henderson <rth@redhat.com>
* config/os/bsd/bits/ctype_inline.h (is): Fix order of expressions.
diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h
index a753177a413..b782580f3c0 100644
--- a/libstdc++-v3/include/bits/ios_base.h
+++ b/libstdc++-v3/include/bits/ios_base.h
@@ -1,6 +1,6 @@
// Iostreams base classes -*- C++ -*-
-// Copyright (C) 1997-1999 Free Software Foundation, Inc.
+// Copyright (C) 1997-2000 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -149,10 +149,10 @@ namespace std {
failure(const string& __str);
virtual
- ~failure() { };
+ ~failure();
- virtual const
- char* what() const throw() { return _M_name; }
+ virtual const char*
+ what() const throw();
private:
enum { _M_bufsize = 256 };
diff --git a/libstdc++-v3/src/ios.cc b/libstdc++-v3/src/ios.cc
index ea8fecdc631..b7b7ff7bb1b 100644
--- a/libstdc++-v3/src/ios.cc
+++ b/libstdc++-v3/src/ios.cc
@@ -114,6 +114,13 @@ namespace std {
_M_name[_M_bufsize - 1] = '\0';
}
+ ios_base::failure::~failure()
+ { }
+
+ const char*
+ ios_base::failure::what() const throw()
+ { return _M_name; }
+
ios_base::Init::Init()
{
if (++_S_ios_base_init == 1)