instantiate4.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 29 行
C
29 行
// { dg-do link }// { dg-options "-frepo -Werror" }// Build then link:// Submitted by Melissa O'Neill <oneill@cs.sfu.ca>// the vtable of Foo<int> wouldn't be generatedtemplate <typename A>struct Foo { virtual void foo() {}};template <typename A>struct Bar { void bar();};template <typename A> void Bar<A>::bar() { Foo<A> oof;}int main () { Bar<int> rab; rab.bar();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?