Changeset d276424f in mainline


Ignore:
Timestamp:
2019-07-02T13:08:59Z (5 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.