I'm trying to implement own functor and faced with empty capture lambdas. How to distinguish empty struct from one char? Is there are any "real" size at compile time? I want just ignore empty lambdas to prevent useless allocations.
struct EmptyStruct {};
struct CharStruct { char c; };
int main()
{
char buffer1[sizeof(EmptyStruct)]; // size 1 byte
char buffer2[sizeof(CharStruct)]; // size 1 byte
}