- 938 名前:636 mailto:sage [2005/09/15(木) 13:09:16 ]
- >>637
identifier "f2" is undefined detected during instantiation of "void f1(T) [with T=int]" というエラーです。strict mode のみのようです。 ちなみに、ユーザ定義型の場合は期待通りにコンパイルできました。 template <class T> void f1(T t) { f2(t); } struct a{}; void f2(a) {} namespace adl { struct a{}; void f2(a) {} } int main() { f1(a()); f1(adl::a()); } このコードはコンパイル成功。
|

|