aaronpuchert added a comment. @GorNishanov Do I read the standard correctly that there are no constraints on what `return_value` is? That is, could it also be a function pointer or function object?
struct promise_function_pointer { // ... void (*return_value)(T&& value); }; struct promise_function_object { // ... struct { void operator()(T&& value) {}; } return_value; }; In both cases, the expression `<p>.return_value(<expr-or-braced-init-list>)` would be well-formed. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68845/new/ https://reviews.llvm.org/D68845 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits