Lancern's Treasure Chest
11:13 · Jan 24, 2023 · Tue
https://stackoverflow.com/questions/75212236/do-lambda-expressions-that-appear-in-different-definitions-of-a-same-entity-prod
可以提交 defect report 了
Stack Overflow
Do lambda expressions that appear in different definitions of a same entity produce the same closure type?
In C++20 we can use lambda expressions in unevaluated contexts. Consider the following C++20 code:
foo.cpp
#include <typeinfo>
struct Foo {
using T = decltype([]{});
}; // struct Foo
con...
Home
Powered by
BroadcastChannel
&
Sepia