Removed ETL_ASSERT and commented out debug code.

This commit is contained in:
John Wellbelove 2016-05-03 18:49:21 +01:00
parent 8cc41990c4
commit ec74c52fbc

View File

@ -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<size_t>(count) <= MAX_SIZE, ETL_ERROR(vector_full));
#endif