You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
245 B
13 lines
245 B
4 months ago
|
// header for codegen-extern-template.cpp
|
||
|
#ifndef CODEGEN_EXTERN_TEMPLATE_H
|
||
|
#define CODEGEN_EXTERN_TEMPLATE_H
|
||
|
|
||
|
template <typename T>
|
||
|
inline T foo() { return 10; }
|
||
|
|
||
|
extern template int foo<int>();
|
||
|
|
||
|
inline int bar() { return foo<int>(); }
|
||
|
|
||
|
#endif
|