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

Changeset d276424f in mainline


Ignore:
Timestamp:
2019-07-02T13:08:59Z (16 months ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
master
Children:
d3ba97d
Parents:
5d71d09
Message:

cpp: fix allocators for promise and packaged_task

Location:
uspace/lib/cpp/include/__bits/thread
Files:
2 edited

Legend:

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

    r5d71d09 rd276424f  
    7777                : func_{forward<F>(f)}, state_{}
    7878            {
    79                 auto rebound = allocator_traits<Allocator>::rebind<
    80                     aux::shared_state<R>
    81                 >{a};
     79                typename allocator_traits<
     80                    Allocator
     81                >::template rebind_alloc<aux::shared_state<R>> rebound{a};
    8282
    8383                state_ = rebound.allocate(1);
  • uspace/lib/cpp/include/__bits/thread/promise.hpp

    r5d71d09 rd276424f  
    5757                    : state_{}
    5858                {
    59                     auto rebound = allocator_traits<Allocator>::rebind<
    60                         aux::shared_state<R>
    61                     >{a};
     59                    typename allocator_traits<
     60                        Allocator
     61                    >::template rebind_alloc<aux::shared_state<R>> rebound{a};
    6262
    6363                    state_ = rebound.allocate(1);
Note: See TracChangeset for help on using the changeset viewer.