From ec74c52fbcffceeb7ccf20bc2b21bf6a50af4b8b Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Tue, 3 May 2016 18:49:21 +0100 Subject: [PATCH] Removed ETL_ASSERT and commented out debug code. --- src/ivector.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/ivector.h b/src/ivector.h index 5ce7374c..39659469 100644 --- a/src/ivector.h +++ b/src/ivector.h @@ -271,13 +271,6 @@ namespace etl reference at(size_t i) { ETL_ASSERT(i < current_size, ETL_ERROR(vector_out_of_bounds)); - -// if (i >= current_size) -// { -// -// throw etl::vector_out_of_bounds("a", 1); -// } - return p_buffer[i]; } @@ -359,7 +352,6 @@ namespace etl { #ifdef _DEBUG difference_type count = std::distance(first, last); - ETL_ASSERT(count >= 0, ETL_ERROR(vector_iterator)); ETL_ASSERT(static_cast(count) <= MAX_SIZE, ETL_ERROR(vector_full)); #endif