Commit c46e953c authored by snuverink_j's avatar snuverink_j
Browse files

remove using std::string from ClassicException.h

parent 3b23ab00
......@@ -23,7 +23,7 @@
#include "FixedAlgebra/FTpsData.h"
#include <iosfwd>
#include <list>
// #include <climits>
#include <string>
struct TpsSubstitution;
......@@ -398,7 +398,7 @@ private:
// Check that min-, max-, and trcOrder's have the correct relationships.
// If not, complain with a message that names the given "method".
static void checkOrders(const string &method, int minOrder, int maxOrder, int &trcOrder);
static void checkOrders(const std::string &method, int minOrder, int maxOrder, int &trcOrder);
// Pointer to representation.
// This is the only non-static data member of class FTps<T,N>.
......
......@@ -26,7 +26,7 @@
ArithmeticError::ArithmeticError
(const string &meth, const string &msg):
(const std::string &meth, const std::string &msg):
ClassicException(meth, msg)
{}
......
......@@ -22,6 +22,7 @@
#include "Utilities/ClassicException.h"
#include <string>
// Class ArithmeticError
// ------------------------------------------------------------------------
......@@ -41,7 +42,7 @@ protected:
// [DT][b]msg [/b]
// [DD]the message string identifying the exception
// [/DL]
ArithmeticError(const string &meth, const string &msg);
ArithmeticError(const std::string &meth, const std::string &msg);
ArithmeticError(const ArithmeticError &);
virtual ~ArithmeticError();
......
......@@ -26,7 +26,7 @@
AttributeError::AttributeError
(const string &meth, const string &msg):
(const std::string &meth, const std::string &msg):
ClassicException(meth, msg)
{}
......
......@@ -22,6 +22,7 @@
#include "Utilities/ClassicException.h"
#include <string>
// Class AttributeError
// ------------------------------------------------------------------------
......@@ -40,7 +41,7 @@ public:
// [DT][b]msg [/b]
// [DD]the message string identifying the exception
// [/DL]
AttributeError(const string &meth, const string &msg);
AttributeError(const std::string &meth, const std::string &msg);
AttributeError(const AttributeError &);
virtual ~AttributeError();
......
......@@ -25,7 +25,7 @@
// ------------------------------------------------------------------------
CLRangeError::CLRangeError(const string &meth, const string &msg):
CLRangeError::CLRangeError(const std::string &meth, const std::string &msg):
ArithmeticError(meth, msg)
{}
......
......@@ -22,6 +22,7 @@
#include "Utilities/ArithmeticError.h"
#include <string>
// Class CLRangeError
// ------------------------------------------------------------------------
......@@ -42,7 +43,7 @@ public:
// [DD]the message string identifying the exception
// [/DL]
// Construction/destruction.
CLRangeError(const string &meth, const string &msg);
CLRangeError(const std::string &meth, const std::string &msg);
CLRangeError(const CLRangeError &);
virtual ~CLRangeError();
......
......@@ -22,9 +22,6 @@
#include <string>
using std::string;
// Class ClassicException
// ------------------------------------------------------------------------
/// The abstract base class for all exceptions in CLASSIC.
......
......@@ -25,7 +25,7 @@
// ------------------------------------------------------------------------
ConvergenceError::ConvergenceError(const string &meth, const string &msg):
ConvergenceError::ConvergenceError(const std::string &meth, const std::string &msg):
ArithmeticError(meth, msg)
{}
......
......@@ -22,6 +22,7 @@
#include "Utilities/ArithmeticError.h"
#include <string>
// Class ConvergenceError
// ------------------------------------------------------------------------
......@@ -40,7 +41,7 @@ public:
// [DT][b]msg [/b]
// [DD]the message string identifying the exception
// [/DL]
ConvergenceError(const string &method, const string &message);
ConvergenceError(const std::string &method, const std::string &message);
ConvergenceError(const ConvergenceError &);
virtual ~ConvergenceError();
......
......@@ -25,7 +25,7 @@
// ------------------------------------------------------------------------
DivideError::DivideError(const string &method):
DivideError::DivideError(const std::string &method):
ArithmeticError(method, "Divide error.")
{}
......
......@@ -22,6 +22,7 @@
#include "Utilities/ArithmeticError.h"
#include <string>
// Class DivideError
// ------------------------------------------------------------------------
......@@ -38,7 +39,7 @@ public:
// [DT][b]meth[/b]
// [DD]the name of the method or function detecting the exception
// [/DL]
explicit DivideError(const string &meth);
explicit DivideError(const std::string &meth);
DivideError(const DivideError &);
virtual ~DivideError();
......
......@@ -25,7 +25,7 @@
// ------------------------------------------------------------------------
DomainError::DomainError(const string &meth):
DomainError::DomainError(const std::string &meth):
ArithmeticError(meth, "Domain error.")
{}
......
......@@ -22,6 +22,7 @@
#include "Utilities/ArithmeticError.h"
#include <string>
// Class DomainError
// ------------------------------------------------------------------------
......@@ -38,7 +39,7 @@ public:
// [DT][b]meth[/b]
// [DD]the name of the method or function detecting the exception
// [/DL]
DomainError(const string &meth);
DomainError(const std::string &meth);
DomainError(const DomainError &);
virtual ~DomainError();
......
......@@ -25,7 +25,7 @@
// ------------------------------------------------------------------------
EigenvalueError::EigenvalueError(const string &meth, const string &msg):
EigenvalueError::EigenvalueError(const std::string &meth, const std::string &msg):
ArithmeticError(meth, msg)
{}
......
......@@ -22,6 +22,7 @@
#include "Utilities/ArithmeticError.h"
#include <string>
// Class EigenvalueError
// ------------------------------------------------------------------------
......@@ -41,7 +42,7 @@ public:
// [DT][b]msg [/b]
// [DD]the message string identifying the exception
// [/DL]
EigenvalueError(const string &meth, const string &msg);
EigenvalueError(const std::string &meth, const std::string &msg);
EigenvalueError(const EigenvalueError &);
virtual ~EigenvalueError();
......
......@@ -26,7 +26,7 @@
// ------------------------------------------------------------------------
FormatError::FormatError(const string &meth, const string &msg):
FormatError::FormatError(const std::string &meth, const std::string &msg):
ClassicException(meth, msg)
{}
......
......@@ -22,6 +22,7 @@
#include "Utilities/ClassicException.h"
#include <string>
// Class FormatError
// ------------------------------------------------------------------------
......@@ -40,7 +41,7 @@ public:
// [DT][b]msg [/b]
// [DD]the message string identifying the exception
// [/DL]
FormatError(const string &meth, const string &msg);
FormatError(const std::string &meth, const std::string &msg);
FormatError(const FormatError &);
virtual ~FormatError();
......
......@@ -25,7 +25,7 @@
// ------------------------------------------------------------------------
LogicalError::LogicalError(const string &meth, const string &msg):
LogicalError::LogicalError(const std::string &meth, const std::string &msg):
ClassicException(meth, msg)
{}
......
......@@ -22,6 +22,7 @@
#include "Utilities/ClassicException.h"
#include <string>
// Class LogicalError
// ------------------------------------------------------------------------
......@@ -41,7 +42,7 @@ public:
// [DT][b]msg [/b]
// [DD]the message string identifying the exception
// [/DL]
LogicalError(const string &meth, const string &msg);
LogicalError(const std::string &meth, const std::string &msg);
LogicalError(const LogicalError &);
virtual ~LogicalError();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment