Is instantiating a class template with an incomplete type ill-formed, if the type is defined afterwards?

前端 未结 3 866
野趣味
野趣味 2021-02-14 01:47

This code is surely ill-formed, because Foo is specialized after an instantiation point:

template 
struct Foo {
    int a;
};

Foo         


        
3条回答
提交回复
热议问题