summaryrefslogtreecommitdiff
path: root/extra/yassl/taocrypt/mySTL
diff options
context:
space:
mode:
Diffstat (limited to 'extra/yassl/taocrypt/mySTL')
-rw-r--r--extra/yassl/taocrypt/mySTL/stdexcept.hpp3
-rw-r--r--extra/yassl/taocrypt/mySTL/vector.hpp7
2 files changed, 4 insertions, 6 deletions
diff --git a/extra/yassl/taocrypt/mySTL/stdexcept.hpp b/extra/yassl/taocrypt/mySTL/stdexcept.hpp
index 9696995248d..15533eebc02 100644
--- a/extra/yassl/taocrypt/mySTL/stdexcept.hpp
+++ b/extra/yassl/taocrypt/mySTL/stdexcept.hpp
@@ -26,7 +26,6 @@
#include <string.h> // strncpy
-#include <assert.h> // assert
#include <stdlib.h> // size_t
@@ -41,7 +40,7 @@ public:
virtual const char* what() const { return ""; }
// for compiler generated call, never used
- static void operator delete(void*) { assert(0); }
+ static void operator delete(void*) { }
private:
// don't allow dynamic creation of exceptions
static void* operator new(size_t);
diff --git a/extra/yassl/taocrypt/mySTL/vector.hpp b/extra/yassl/taocrypt/mySTL/vector.hpp
index 8ba8813ca70..35b92610942 100644
--- a/extra/yassl/taocrypt/mySTL/vector.hpp
+++ b/extra/yassl/taocrypt/mySTL/vector.hpp
@@ -26,7 +26,6 @@
#include "helpers.hpp" // construct, destory, fill, etc.
#include "algorithm.hpp" // swap
-#include <assert.h> // assert
namespace mySTL {
@@ -141,9 +140,9 @@ private:
// for growing, n must be bigger than other size
vector(size_t n, const vector& other) : vec_(n)
{
- assert(n > other.size());
- vec_.finish_ = uninit_copy(other.vec_.start_, other.vec_.finish_,
- vec_.start_);
+ if (n > other.size())
+ vec_.finish_ = uninit_copy(other.vec_.start_, other.vec_.finish_,
+ vec_.start_);
}
};