mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
Removed ETL_ASSERT and commented out debug code.
This commit is contained in:
parent
8cc41990c4
commit
ec74c52fbc
@ -271,13 +271,6 @@ namespace etl
|
|||||||
reference at(size_t i)
|
reference at(size_t i)
|
||||||
{
|
{
|
||||||
ETL_ASSERT(i < current_size, ETL_ERROR(vector_out_of_bounds));
|
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];
|
return p_buffer[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -359,7 +352,6 @@ namespace etl
|
|||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
difference_type count = std::distance(first, last);
|
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));
|
ETL_ASSERT(static_cast<size_t>(count) <= MAX_SIZE, ETL_ERROR(vector_full));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user