Changeset 4039


Ignore:
Timestamp:
Feb 11, 2021, 8:30:04 AM (4 months ago)
Author:
Peter
Message:

Using me::value_type propagated to compilation errors and created
rather cryptic messages. Prefer the clearer Segment<T, Compare>.

File:
1 edited

Legend:

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

    r4027 r4039  
    6363     */
    6464    typename me::const_iterator
    65     insert_merge(const typename me::value_type& segment)
     65    insert_merge(const Segment<T, Compare>& segment)
    6666    {
    6767      std::pair<typename me::iterator, typename me::iterator> p =
     
    7878     */
    7979    typename me::const_iterator
    80     insert_merge(typename me::value_type&& segment)
     80    insert_merge(Segment<T, Compare>&& segment)
    8181    {
    8282      std::pair<typename me::iterator, typename me::iterator> p =
     
    9696     */
    9797    typename me::iterator insert_merge(typename me::iterator hint,
    98                                        const typename me::value_type& segment)
    99     {
    100       typename me::value_type tmp(segment);
     98                                       const Segment<T, Compare>& segment)
     99    {
     100      Segment<T, Compare> tmp(segment);
    101101      return insert_merge(hint, std::move(tmp));
    102102    }
     
    108108    typename me::iterator
    109109    insert_merge(typename me::iterator hint,
    110                  typename me::value_type&& segment)
     110                 Segment<T, Compare>&& segment)
    111111    {
    112112      std::pair<typename me::iterator, typename me::iterator> p(hint, hint);
     
    171171    move_insert_merge(const std::pair<typename me::iterator,
    172172                                      typename me::iterator>& p,
    173                       typename me::value_type&& segment)
     173                      Segment<T, Compare>&& segment)
    174174    {
    175175      YAT_ASSERT(p.first==this->end() || !compare(*p.first, segment));
Note: See TracChangeset for help on using the changeset viewer.