Duncan Exon Smith wrote:For what it's worth, I was surprised that has_trait didn't error out when passed an incomplete type. It seems like just having it return false with incomplete types would be problematic for more than just the incorrect deduction -- it could lead to ODR violations, etc.I'm still interested in whether this is a defect, or just a limitation
of C++, if anyone has an opinion...
Perhaps the macros should have a sizeof(T) line added. . .