using2.c

来自「gcc3.2.1源代码」· C语言 代码 · 共 27 行

C
27
字号
// Build don't link:// // Copyright (C) 2001 Free Software Foundation, Inc.// Contributed by Nathan Sidwell 22 May 2001 <nathan@codesourcery.com>// Bug 2184. Using decls in templates weren't doing the right thing.namespace N {  template <class T>  class vector {};}void g(const int&) {  using N::vector;  typedef vector<int> V;}template <class J>void f(const J&) {  using N::vector;  typedef vector<int> V;}int main() {  f(0);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?