also compile when std::string is not implicit included/typedefed by other headers; the SUN compiler needs the explicit include of <string>
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@694 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
234e0855d1
commit
81c7b0d3db
1 changed files with 5 additions and 1 deletions
|
@ -39,6 +39,7 @@
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#if !defined(_MSC_VER)
|
#if !defined(_MSC_VER)
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -731,7 +732,7 @@ namespace Loki
|
||||||
|
|
||||||
struct NullPointerException : public std::runtime_error
|
struct NullPointerException : public std::runtime_error
|
||||||
{
|
{
|
||||||
NullPointerException() : std::runtime_error("")
|
NullPointerException() : std::runtime_error(std::string(""))
|
||||||
{ }
|
{ }
|
||||||
const char* what() const throw()
|
const char* what() const throw()
|
||||||
{ return "Null Pointer Exception"; }
|
{ return "Null Pointer Exception"; }
|
||||||
|
@ -1525,6 +1526,9 @@ namespace std
|
||||||
|
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.33 2006/07/07 09:50:30 syntheticpp
|
||||||
|
// also compile when std::string is not implicit included/typedefed by other headers; the SUN compiler needs the explicit include of <string>
|
||||||
|
//
|
||||||
// Revision 1.32 2006/06/19 12:39:08 syntheticpp
|
// Revision 1.32 2006/06/19 12:39:08 syntheticpp
|
||||||
// replace tabs with 4 spaces
|
// replace tabs with 4 spaces
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue