blob: 51b246948ed14763bc7c54892971b979c49500d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Build don't link:
struct IsCompressed { };
struct Field {
};
template<class C>
inline bool
for_each(const Field& p, IsCompressed, C)
{
return p.IsCompressed(); // ERROR - calling type like a method
}
template bool for_each<int>(const Field& p, IsCompressed, int); // ERROR - instantiated from here
|