代码搜索:explicit

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

代码结果 10,000
www.eeworm.com/read/470720/1445156

c explicit1.c

// Origin: Jason Merrill struct A { A (); explicit A (int); }; int main () { const A& r = 1; // ERROR - no suitable constructor }
www.eeworm.com/read/470720/1445695

c explicit1.c

// Build don't link: // GROUPS passed templates template void foo(T t) {} void bar() { (void (*)(double)) &foo; }
www.eeworm.com/read/470720/1445704

c explicit56.c

template T* create (); template T* create2() { return create(); } template T* create () { return new T; } int main() { int *p = create2(); }
www.eeworm.com/read/470720/1445707

c explicit72.c

// Build don't link: // Contributed by Reid M. Pinchback // Adapted by Alexandre Oliva // plain char, signed char and unsigned char are distinct types template
www.eeworm.com/read/470720/1445713

c explicit4.c

// Build don't link: // GROUPS passed templates template void foo(T t); template struct S {}; template void bar(T t) { void (*f)(S ) = &foo; } void baz()
www.eeworm.com/read/470720/1445737

c explicit60.c

extern "C" void abort (); template void f (); template void g () { abort (); } template void g () { abort (); } template class C { public: void ff (
www.eeworm.com/read/470720/1445749

c explicit23.c

// Build don't run: // GROUPS passed templates // Special g++ Options: -ansi -pedantic-errors -w template int foo(T t) { return 1; } template int foo(int i) { return 0; } int main(
www.eeworm.com/read/470720/1445752

c explicit10.c

// Build don't link: // GROUPS passed templates // Special g++ Options: -ansi -pedantic-errors -w template void foo(T t); int main() { foo(3.0); }
www.eeworm.com/read/470720/1445754

c explicit6.c

// Build don't run: // GROUPS passed templates // Special g++ Options: -ansi -pedantic-errors -w template int foo(T t); template int foo(int i) { return 0; } int main() { return foo
www.eeworm.com/read/470720/1445755

c explicit67.c

struct S { void f(int); void f(double); }; void g(int); void g(double); template void foo(); template void foo(); void bar() { foo(); // ERROR - no matching function