don't use boost string algorithm
This commit is contained in:
+1
-32
@@ -11,37 +11,6 @@
|
||||
|
||||
#include "webcc/config.h"
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Macros
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#if _MSC_VER <= 1800 // VS 2013
|
||||
|
||||
// Does the compiler support "= default" for move copy constructor and
|
||||
// move assignment operator?
|
||||
#define WEBCC_DEFAULT_MOVE_COPY_ASSIGN 0
|
||||
|
||||
#define WEBCC_NOEXCEPT
|
||||
|
||||
#else
|
||||
|
||||
#define WEBCC_DEFAULT_MOVE_COPY_ASSIGN 1
|
||||
|
||||
#define WEBCC_NOEXCEPT noexcept
|
||||
|
||||
#endif // _MSC_VER <= 1800
|
||||
|
||||
#else
|
||||
|
||||
// GCC, Clang, etc.
|
||||
|
||||
#define WEBCC_DEFAULT_MOVE_COPY_ASSIGN 1
|
||||
|
||||
#define WEBCC_NOEXCEPT noexcept
|
||||
|
||||
#endif // _MSC_VER
|
||||
|
||||
namespace webcc {
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -197,7 +166,7 @@ public:
|
||||
}
|
||||
|
||||
// Note that `noexcept` is required by GCC.
|
||||
const char* what() const WEBCC_NOEXCEPT override{
|
||||
const char* what() const noexcept override{
|
||||
return message_.c_str();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user