?? overload15.c
字號:
// { dg-do assemble }// Test resolution of templatized overloaded constructors.// The more specialized constructor, i.e., A (const B<Dim1,Dim2> &b)// should be chosen per \S 14.5.5.2/2 [temp.func.order/2].template <int Dim1, int Dim2>struct B { int f;};struct A { template <int Dim1, int Dim2> A (const B<Dim1,Dim2> &b) {} template <typename T> A (const T &b) {}};intmain (){ B<2,3> b; A a (b); return 0;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -