Changeset 39:26f8a5bb40c7 in rrlib_concurrent_containers


Ignore:
Timestamp:
21.02.2021 20:11:43 (16 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Phase:
public
Message:

Fixes compile errors occuring with older compilers (introduced with last changeset)

Location:
queue
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • queue/tIntrusiveLinkedFragmentBasedQueue.h

    r37 r39  
    8787    tQueueableMost* ex_last = last.exchange(NULL); 
    8888    result.InitLIFO(ex_last, -1); 
    89     return result; 
     89    return tQueueFragment<tPointer>(std::move(result)); 
    9090  } 
    9191 
     
    164164 
    165165    result.InitLIFO(ex_last_ptr, max_length); 
    166     return std::move(result); 
     166    return tQueueFragment<tPointer>(std::move(result)); 
    167167  } 
    168168 
     
    299299 
    300300    result.InitLIFO(ex_last_ptr, max_length); 
    301     return result; 
     301    return tQueueFragment<tPointer>(std::move(result)); 
    302302  } 
    303303 
  • queue/tIntrusiveSingleThreadedQueue.h

    r37 r39  
    111111    this->next_single_threaded_queueable = this; 
    112112    last = this; 
    113     return result; 
     113    return tQueueFragment<tPointer>(std::move(result)); 
    114114  } 
    115115 
     
    167167    next = NULL; 
    168168    last = NULL; 
    169     return result; 
     169    return tQueueFragment<tPointer>(std::move(result)); 
    170170  } 
    171171 
Note: See TracChangeset for help on using the changeset viewer.