
8 Nov
2012
8 Nov
'12
11:58 p.m.
On 05/11/2012 09:34, Antony Polukhin wrote:
struct incomplete; template <int N> struct incomplete_template; struct complete{}; struct complete_abstract{ virtual void foo() =0; };
void test();
void foo1() { cout << is_complete<incomplete, __LINE__>::value << is_complete<incomplete_template<0> , __LINE__>::value << is_complete<incomplete_template<1> , __LINE__>::value << is_complete<complete, __LINE__>::value << is_complete<complete_abstract, __LINE__>::value << endl; }
What if I do in another TU is_complete<incomplete, __LINE__> at the same line number and when incomplete is actually complete?