Skip to content

Commit d92508c

Browse files
authored
Update 003_template_external_template.cpp
1 parent 6e4644e commit d92508c

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
1
1+
// test.h
2+
template <typename T>
3+
void fun(T) { }
4+
5+
// test1.cpp
6+
#include "test.h"
7+
void test1()
8+
{
9+
fun(1);
10+
}
11+
12+
// test2.cpp
13+
#include "test.h"
14+
void test2()
15+
{
16+
fun(2);
17+
}

0 commit comments

Comments
 (0)