ios_base.h (ios_base::failure::~failure, [...]): Move defintion to ...
authorGabriel Dos Reis <gdr@codesourcery.com>
Thu, 23 Nov 2000 04:53:40 +0000 (04:53 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Thu, 23 Nov 2000 04:53:40 +0000 (04:53 +0000)
* 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.

From-SVN: r37684

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/ios_base.h
libstdc++-v3/src/ios.cc

index bc9df97acfa05d99c450d4fd58e008deead5c3e3..caaf9fef0969d3a88cae3214af80080f35af7bb5 100644 (file)
@@ -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.
index a753177a413e90d4e5bc70275dd00ad84f9bc829..b782580f3c0c573fbb4ef6f0b183d7ecc2f4679b 100644 (file)
@@ -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 };
index ea8fecdc63145dcb943e4773926420ebfd2d3d8f..b7b7ff7bb1b9c6c27484ed9673c14c9a080c65fa 100644 (file)
@@ -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)