Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 87efcb1 in mainline


Ignore:
Timestamp:
2019-07-01T12:22:32Z (16 months ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
master
Children:
cf279270
Parents:
d340254
Message:

cpp: use default implementations of assignment instead of explicitly calling parent assignment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/__bits/thread/future.hpp

    rd340254 r87efcb1  
    171171            future& operator=(const future&) = delete;
    172172
    173             future& operator=(future&& rhs) noexcept
    174             {
    175                 return aux::future_base<R>::operator=(move(rhs));
    176             }
     173            future& operator=(future&& rhs) noexcept = default;
    177174
    178175            shared_future<R> share()
     
    214211            future& operator=(const future&) = delete;
    215212
    216             future& operator=(future&& rhs) noexcept
    217             {
    218                 return aux::future_base<R>::operator=(move(rhs));
    219             }
     213            future& operator=(future&& rhs) noexcept = default;
    220214
    221215            shared_future<R&> share()
Note: See TracChangeset for help on using the changeset viewer.