[Bug c++/103358] what is the first constructor argument of lambda coroutine promise_type?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103358 --- Comment #2 from Net Can --- (In reply to Iain Sandoe from comment #1) > There was a long discussion about this between the various WG21 paper > authors. > > The stated intend was that 'this' pointer and the 'lambda object pointer' > were intended to be cast to references (to the same type as their pointers). > > This behaviour should be the same between MSVC, clang and GCC (but I fear > that the amendment did not make C++20 timescale - so we might need a > coordinated change to remove it from the compilers). > > Does that explain what you are seeing? yes, I see. thank you for your explanation.
[Bug c++/103358] what is the first constructor argument of lambda coroutine promise_type?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103358 Iain Sandoe changed: What|Removed |Added CC||iains at gcc dot gnu.org --- Comment #1 from Iain Sandoe --- There was a long discussion about this between the various WG21 paper authors. The stated intend was that 'this' pointer and the 'lambda object pointer' were intended to be cast to references (to the same type as their pointers). This behaviour should be the same between MSVC, clang and GCC (but I fear that the amendment did not make C++20 timescale - so we might need a coordinated change to remove it from the compilers). Does that explain what you are seeing?