1132720Skan// Iostreams base classes -*- C++ -*- 2132720Skan 3169691Skan// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005 4132720Skan// Free Software Foundation, Inc. 5132720Skan// 6132720Skan// This file is part of the GNU ISO C++ Library. This library is free 7132720Skan// software; you can redistribute it and/or modify it under the 8132720Skan// terms of the GNU General Public License as published by the 9132720Skan// Free Software Foundation; either version 2, or (at your option) 10132720Skan// any later version. 11132720Skan 12132720Skan// This library is distributed in the hope that it will be useful, 13132720Skan// but WITHOUT ANY WARRANTY; without even the implied warranty of 14132720Skan// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15132720Skan// GNU General Public License for more details. 16132720Skan 17132720Skan// You should have received a copy of the GNU General Public License along 18132720Skan// with this library; see the file COPYING. If not, write to the Free 19169691Skan// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 20132720Skan// USA. 21132720Skan 22132720Skan// As a special exception, you may use this file as part of a free software 23132720Skan// library without restriction. Specifically, if other files instantiate 24132720Skan// templates or use macros or inline functions from this file, or you compile 25132720Skan// this file and link it with other files to produce an executable, this 26132720Skan// file does not by itself cause the resulting executable to be covered by 27132720Skan// the GNU General Public License. This exception does not however 28132720Skan// invalidate any other reasons why the executable file might be covered by 29132720Skan// the GNU General Public License. 30132720Skan 31132720Skan// 32132720Skan// ISO C++ 14882: 27.4.2.1.1 Class ios_base::failure 33132720Skan// 34132720Skan 35132720Skan#include <ios> 36132720Skan 37169691Skan_GLIBCXX_BEGIN_NAMESPACE(std) 38169691Skan 39132720Skan ios_base::failure::failure(const string& __str) throw() 40132720Skan : _M_msg(__str) { } 41132720Skan 42132720Skan ios_base::failure::~failure() throw() 43132720Skan { } 44132720Skan 45132720Skan const char* 46132720Skan ios_base::failure::what() const throw() 47132720Skan { return _M_msg.c_str(); } 48169691Skan 49169691Skan_GLIBCXX_END_NAMESPACE 50