Changeset 1037 for trunk/yat


Ignore:
Timestamp:
Feb 5, 2008, 6:55:22 PM (14 years ago)
Author:
Peter
Message:

some msg when using yat_assert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Iterator.h

    r1027 r1037  
    7676     */
    7777    reference operator*(void) const
    78     { yat_assert<std::out_of_range>(index_<container_->size());
    79       return container_->operator()(index_); }
     78    {
     79      yat_assert<std::out_of_range>(index_<container_->size(),
     80                                    "Iterator::operator*");
     81      return container_->operator()(index_);
     82    }
    8083
    8184    /**
     
    8386     */
    8487    reference operator[](difference_type n) const
    85     { yat_assert<std::out_of_range>(index_+n < container_->size());
    86       return container_->operator()(index_+n); }
     88    {
     89      yat_assert<std::out_of_range>(index_+n < container_->size(),
     90                                    "Iterator::operator[]");
     91      return container_->operator()(index_+n);
     92    }
    8793
    8894    /**
Note: See TracChangeset for help on using the changeset viewer.