
24 Oct
2007
24 Oct
'07
2:37 p.m.
Johan Nilsson wrote:
Markus Schöpflin wrote:
[...]
---%<--- template <class T> struct foo { T *p; void bar() { foobar(p); } };
void foobar(int *p) {}
void argl() { foo<int> f; f.bar(); } --->%---
I don't think lookup works with built-in types. Try the above with e.g. "struct bar{};" instead of "int".
You are right. Sigh, obviously I don't manage to create a small reproducer for the error seen at http://preview.tinyurl.com/23towf. (Scroll down to the last five errors, ignore the rest, this has been fixed by now.) But yet I have learned by now that usually this compiler knows the standard better than me. Could anyone confirm or deny that this is indeed an error? TIA, Markus