代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/162614/5520227
c explicit79.c
// { dg-do assemble }
template
void f(int (*)[I] = 0);
template
void f();
void g()
{
f();
}
www.eeworm.com/read/162614/5520249
c explicit80.c
// { dg-do assemble }
// Bug: We were complaining about explicit instantiation of A::B.
template
struct A
{
public:
~A() { };
class B;
};
template class A::B { };
templa
www.eeworm.com/read/162614/5520259
c explicit74.c
// { dg-do run }
// 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
www.eeworm.com/read/162614/5520270
c explicit18.c
// { dg-do link }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
template
int foo(T t) { return 0; }
int foo(int i);
int main()
{
return foo(3.0);
}
www.eeworm.com/read/162614/5520300
c explicit71.c
// { dg-do assemble }
// by Alexandre Oliva
// Based on a testcase by Reid M. Pinchback
// According to the C++ Standard [temp.expl.spec]/17-18, explicit
// sp
www.eeworm.com/read/162614/5520301
c explicit33.c
// { dg-do assemble }
// GROUPS passed templates
template
void foo(T t);
template
void foo(int) {}
void foo(int) {}
www.eeworm.com/read/162614/5520309
c explicit76.c
// { dg-do assemble }
// Based on bug report by Simon A. Crase
struct foo {
template void bar();
};
template void foo::bar(); // { dg-bogus "" "" { xfail *-*-*
www.eeworm.com/read/162614/5520318
c explicit52.c
// { dg-do run }
extern "C" void abort ();
template inline int fact ()
{
return a * fact ();
}
template inline int fact ()
{
return 1;
}
int main()
{
if (fact () != 6 |
www.eeworm.com/read/162614/5520324
c explicit5.c
// { dg-do assemble }
// GROUPS passed templates
template
void foo(T t) {}
template
struct S {};
template
void bar(T t)
{
void (*f)(S ) = &foo;
}
void ba
www.eeworm.com/read/162614/5520330
c explicit78.c
// { dg-do assemble }
template
struct A {
};
template
struct B {
operator A ();
operator B ();
};
template
void f(B);
template
vo