2012-10-02 17:09:43 +08:00
|
|
|
@__experimental_modules_import templates_top;
|
|
|
|
|
|
|
|
template<typename T> class Vector;
|
|
|
|
|
|
|
|
template<typename T> class Vector;
|
|
|
|
|
|
|
|
template<typename T> class List;
|
|
|
|
template<> class List<bool> {
|
|
|
|
public:
|
|
|
|
void push_back(int);
|
|
|
|
};
|
|
|
|
namespace N {
|
|
|
|
template<typename T> class Set;
|
|
|
|
}
|
|
|
|
namespace N {
|
|
|
|
template<typename T> class Set {
|
|
|
|
public:
|
|
|
|
void insert(T);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename T>
|
2012-10-02 20:18:46 +08:00
|
|
|
void pendingInstantiationEmit(T) {}
|
2012-10-02 17:09:43 +08:00
|
|
|
void triggerPendingInstantiation() {
|
2012-10-02 20:18:46 +08:00
|
|
|
pendingInstantiationEmit(12);
|
|
|
|
pendingInstantiationEmit(42.);
|
2012-10-02 17:09:43 +08:00
|
|
|
}
|
2012-10-02 20:18:46 +08:00
|
|
|
|
|
|
|
void redeclDefinitionEmit(){}
|