blob: 847dc0eda38cbd064e443bb46d784ec63a1f10c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Build don't link:
template <class T1, class T2>
struct ComputeBinaryType
{
};
template<class T1>
struct ComputeBinaryType<T1, double> {
void g();
};
template<class T1>
struct ComputeBinaryType<T1&, double> {
void h();
};
void f()
{
ComputeBinaryType<double, double> cb;
cb.g();
}
|