@@ -295,7 +295,9 @@ public:
295
295
typedef typename _NodeTypes::__node_value_type_pointer pointer;
296
296
297
297
_LIBCPP_INLINE_VISIBILITY __hash_iterator () _NOEXCEPT : __node_(nullptr ) {
298
- _LIBCPP_DEBUG_MODE (__get_db ()->__insert_i (this ));
298
+ #if _LIBCPP_DEBUG_LEVEL == 2
299
+ __get_db ()->__insert_i (this );
300
+ #endif
299
301
}
300
302
301
303
#if _LIBCPP_DEBUG_LEVEL == 2
@@ -405,14 +407,18 @@ public:
405
407
406
408
407
409
_LIBCPP_INLINE_VISIBILITY __hash_const_iterator () _NOEXCEPT : __node_(nullptr ) {
408
- _LIBCPP_DEBUG_MODE (__get_db ()->__insert_i (this ));
410
+ #if _LIBCPP_DEBUG_LEVEL == 2
411
+ __get_db ()->__insert_i (this );
412
+ #endif
409
413
}
410
414
411
415
_LIBCPP_INLINE_VISIBILITY
412
416
__hash_const_iterator (const __non_const_iterator& __x) _NOEXCEPT
413
417
: __node_(__x.__node_)
414
418
{
415
- _LIBCPP_DEBUG_MODE (__get_db ()->__iterator_copy (this , &__x));
419
+ #if _LIBCPP_DEBUG_LEVEL == 2
420
+ __get_db ()->__iterator_copy (this , &__x);
421
+ #endif
416
422
}
417
423
418
424
#if _LIBCPP_DEBUG_LEVEL == 2
@@ -518,7 +524,9 @@ public:
518
524
typedef typename _NodeTypes::__node_value_type_pointer pointer;
519
525
520
526
_LIBCPP_INLINE_VISIBILITY __hash_local_iterator () _NOEXCEPT : __node_(nullptr ) {
521
- _LIBCPP_DEBUG_MODE (__get_db ()->__insert_i (this ));
527
+ #if _LIBCPP_DEBUG_LEVEL == 2
528
+ __get_db ()->__insert_i (this );
529
+ #endif
522
530
}
523
531
524
532
#if _LIBCPP_DEBUG_LEVEL == 2
@@ -650,7 +658,9 @@ public:
650
658
651
659
652
660
_LIBCPP_INLINE_VISIBILITY __hash_const_local_iterator () _NOEXCEPT : __node_(nullptr ) {
653
- _LIBCPP_DEBUG_MODE (__get_db ()->__insert_i (this ));
661
+ #if _LIBCPP_DEBUG_LEVEL == 2
662
+ __get_db ()->__insert_i (this );
663
+ #endif
654
664
}
655
665
656
666
_LIBCPP_INLINE_VISIBILITY
@@ -659,7 +669,9 @@ public:
659
669
__bucket_ (__x.__bucket_),
660
670
__bucket_count_(__x.__bucket_count_)
661
671
{
662
- _LIBCPP_DEBUG_MODE (__get_db ()->__iterator_copy (this , &__x));
672
+ #if _LIBCPP_DEBUG_LEVEL == 2
673
+ __get_db ()->__iterator_copy (this , &__x);
674
+ #endif
663
675
}
664
676
665
677
#if _LIBCPP_DEBUG_LEVEL == 2
0 commit comments