[C++20] [Coroutines] Prefer sized deallocation in promise_type
Now when the compiler can't find the sized deallocation function correctly in promise_type if there are multiple deallocation function overloads there. According to [dcl.fct.def.coroutine]p12: > If both a usual deallocation function with only a pointer parameter > and a usual deallocation function with both a pointer parameter and a > size parameter are found, then the selected deallocation function > shall be the one with two parameters. So when there are multiple deallocation functions, the compiler should choose the sized one instead of the unsized one. The patch fixes this.
Loading
Please sign in to comment