代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/470693/1457700
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/470693/1457701
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
www.eeworm.com/read/470693/1457705
c explicit69.c
//Build don't link:
template class x {}; // ERROR - not a template instantiation
www.eeworm.com/read/470693/1457711
c explicit8.c
// Build don't link:
// GROUPS passed templates
template
void foo(T t, U u);
template
void foo(double, U) {}
void baz()
{
foo(3.0, "abc");
foo(
www.eeworm.com/read/470693/1457713
c explicit43.c
extern "C" void abort(void);
void F(int)
{
}
void F(double)
{
abort();
}
template
void g()
{
(*F)(3);
}
int main()
{
g();
}
www.eeworm.com/read/470693/1457719
c explicit79.c
// Build don't link:
template
void f(int (*)[I] = 0);
template
void f();
void g()
{
f();
}
www.eeworm.com/read/470693/1457741
c explicit80.c
// Bug: We were complaining about explicit instantiation of A::B.
// Build don't link:
template
struct A
{
public:
~A() { };
class B;
};
class A::B { };
template class A
www.eeworm.com/read/470693/1457751
c explicit74.c
// Reduced from a testcase by Yotam Medini
// egcs 1.1 seems to generate code that deletes a NULL pointer.
template struct foo { void fuz(); ~foo(); };
struct baz
www.eeworm.com/read/470693/1457762
c explicit18.c
// Build don't run:
// GROUPS passed templates
// Special g++ Options: -ansi -pedantic-errors -w
template
int foo(T t) { return 0; }
int foo(int i);
int main()
{
return foo(3.0);
}
www.eeworm.com/read/470693/1457792
c explicit71.c
// Build don't link:
// by Alexandre Oliva
// Based on a testcase by Reid M. Pinchback
// According to the C++ Standard [temp.expl.spec]/17-18, explicit
// spec