Changeset 34:397929065ebb in rrlib_concurrent_containers for queue/tQueueImplementation.h


Ignore:
Timestamp:
04.05.2020 23:17:24 (7 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
14.08
Phase:
public
Message:

Fixes compiler warning with gcc 9.3 ('moving a local object in a return statement prevents copy elision')

File:
1 edited

Legend:

Unmodified
Added
Removed
  • queue/tQueueImplementation.h

    r22 r34  
    120120    std::unique_ptr<T, D> ptr = tBase::Dequeue(); 
    121121    success = ptr.get(); 
    122     return std::move(ptr); 
     122    return ptr; 
    123123  } 
    124124 
Note: See TracChangeset for help on using the changeset viewer.