
7 Apr
2013
7 Apr
'13
3:40 p.m.
Looking at the type_erasure example:
typedef any
any_type;
any_type x(1.1); any_type y(1); any_type z(x + y); Apparently, without placeholders for x and y, this is undefined behavior. Am I interpreting it right? If so, shouldn't it fail to compile or at least throw an exception at runtime? Thanks, Alex