Fix errors to support Xcode

This commit is contained in:
Hallucino 2015-07-09 11:35:09 +02:00
parent 12cee38782
commit a4859ceae5
4 changed files with 4 additions and 9 deletions

View File

@ -214,7 +214,7 @@ class Arg
* The char used as a place holder when SwitchArgs are combined.
* Currently set to the bell char (ASCII 7).
*/
static char blankChar() { return (char)7; }
static char blankChar() { return static_cast<char>(7); }
/**
* The char that indicates the beginning of a flag. Defaults to '-', but

View File

@ -53,10 +53,6 @@ class ArgException : public std::exception
_typeDescription(td)
{ }
/**
* Destructor.
*/
virtual ~ArgException() throw() { }
/**
* Returns the error text.
@ -77,7 +73,7 @@ class ArgException : public std::exception
/**
* Returns the arg id and error text.
*/
const char* what() const throw()
const char* what() const noexcept
{
static std::string ex;
ex = _argId + " -- " + _errorText;

View File

@ -37,7 +37,6 @@ namespace TCLAP {
*/
struct ValueLike {
typedef ValueLike ValueCategory;
virtual ~ValueLike() {}
};
/**

View File

@ -137,7 +137,7 @@ class CmdLine : public CmdLineInterface
/**
* Throws an exception listing the missing args.
*/
void missingArgsException();
[[ noreturn ]] void missingArgsException();
/**
* Checks whether a name/flag string matches entirely matches
@ -533,7 +533,7 @@ inline bool CmdLine::_emptyCombined(const std::string& s)
return true;
}
inline void CmdLine::missingArgsException()
[[ noreturn ]] inline void CmdLine::missingArgsException()
{
int count = 0;