mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
Modified debug #defines
This commit is contained in:
parent
5a0c830f00
commit
77859ad023
@ -167,7 +167,7 @@ namespace etl
|
||||
template <typename TIterator>
|
||||
void assign(TIterator first, TIterator last)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
#if defined(_DEBUG) || defined(DEBUG)
|
||||
difference_type count = std::distance(first, last);
|
||||
ETL_ASSERT(count >= 0, ETL_ERROR(priority_queue_iterator));
|
||||
ETL_ASSERT(static_cast<size_t>(count) <= max_size(), ETL_ERROR(priority_queue_full));
|
||||
|
||||
@ -736,7 +736,7 @@ namespace etl
|
||||
template <typename TIterator>
|
||||
void assign(TIterator first, TIterator last)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
#if defined(_DEBUG) || defined(DEBUG)
|
||||
difference_type count = std::distance(first, last);
|
||||
ETL_ASSERT(count >= 0, ETL_ERROR(unordered_map_iterator));
|
||||
ETL_ASSERT(size_t(count) <= max_size() , ETL_ERROR(unordered_map_full));
|
||||
|
||||
@ -630,7 +630,7 @@ namespace etl
|
||||
template <typename TIterator>
|
||||
void assign(TIterator first, TIterator last)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
#if defined(_DEBUG) || defined(DEBUG)
|
||||
difference_type count = std::distance(first, last);
|
||||
ETL_ASSERT(count >= 0, ETL_ERROR(unordered_multimap_iterator));
|
||||
ETL_ASSERT(size_t(count) <= max_size() , ETL_ERROR(unordered_multimap_full));
|
||||
|
||||
@ -625,7 +625,7 @@ namespace etl
|
||||
template <typename TIterator>
|
||||
void assign(TIterator first, TIterator last)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
#if defined(_DEBUG) || defined(DEBUG)
|
||||
difference_type count = std::distance(first, last);
|
||||
ETL_ASSERT(count >= 0, ETL_ERROR(unordered_multiset_iterator));
|
||||
ETL_ASSERT(size_t(count) <= max_size() , ETL_ERROR(unordered_multiset_full));
|
||||
|
||||
@ -625,7 +625,7 @@ namespace etl
|
||||
template <typename TIterator>
|
||||
void assign(TIterator first, TIterator last)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
#if defined(_DEBUG) || defined(DEBUG)
|
||||
difference_type count = std::distance(first, last);
|
||||
ETL_ASSERT(count >= 0, ETL_ERROR(unordered_set_iterator));
|
||||
ETL_ASSERT(size_t(count) <= max_size() , ETL_ERROR(unordered_set_full));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user