代码搜索:explicit

找到约 10,000 项符合「explicit」的源代码

代码结果 10,000
www.eeworm.com/read/366702/2870396

c explicit26.c

// { dg-do link } // GROUPS passed templates template int foo(T t) { return 1; } template int foo(int i) { return 0; } int main() { (int (*)(int)) &foo; }
www.eeworm.com/read/366702/2870399

c explicit82.c

// { dg-do assemble } // Copyright (C) 2000 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 7 Sep 2000 // Bug 508. We failed to set/clear lastiddecl appropr
www.eeworm.com/read/366702/2870421

c explicit62.c

// { dg-do run } extern "C" void abort (); template void f () { } template class C { friend void f (); public: void ff () { f (); } }; int main () { C
www.eeworm.com/read/366702/2870445

c explicit29.c

// { dg-do link } // GROUPS passed templates template int foo(T) { return 0; } int foo(int); int main() { return foo(3); }
www.eeworm.com/read/366702/2870449

c explicit17.c

// { dg-do assemble } // { dg-options "-ansi -pedantic-errors -w" } // GROUPS passed templates template void foo(U u, T t); template void foo(T t); template s
www.eeworm.com/read/366702/2870452

c explicit22.c

// { dg-do assemble } // GROUPS passed templates template T foo(T t, U* u); template T foo(T t, T* u); template int foo(int, int*);
www.eeworm.com/read/366702/2870475

c explicit14.c

// { dg-do assemble } // GROUPS passed templates template struct S { template typename U::R foo(U u); }; void bar() { S si; }
www.eeworm.com/read/366702/2870499

c explicit2.c

// { dg-do assemble } // GROUPS passed templates template void foo(T t) {} void bar() { (void (*)(int)) (void (*)(double)) &foo; }
www.eeworm.com/read/366702/2870898

c explicit1.c

// { dg-do assemble } // $7.1.2 disallows explicit on anything but declarations of // constructors ... including friends. class foo { public: foo(); }; class bar { public: friend explicit foo::foo();
www.eeworm.com/read/366702/2871249

c explicit1.c

// { dg-do assemble } struct A1 { explicit A1(int) { } } a1(1); struct A { explicit A(int); } a(1); A::A(int) { } void foo(A a) { foo(a); foo(1); // { dg-error "" } not allowed }