代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/162614/5520552
c explicit38.c
// { dg-do assemble }
template
void f(int j);
void g()
{
f(3); // { dg-error "" } no matching function.
}
www.eeworm.com/read/162614/5520557
c explicit55.c
// { dg-do run }
template T* create ()
{
return new T;
}
template T* create2()
{
return create();
}
int main()
{
int *p = create2();
}
www.eeworm.com/read/162614/5520583
c explicit35.c
// { dg-do link }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
struct S
{
template
void foo(T t);
};
template
void S::foo(int i) { }
int main()
{
www.eeworm.com/read/162614/5520592
c explicit31.c
// { dg-do link }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
template
struct S
{
template
static double foo(U u) { return (double) u; }
};
int
www.eeworm.com/read/162614/5520598
c explicit59.c
// { dg-do run }
extern "C" void abort ();
template void f ();
template void g ()
{
abort ();
}
template void g ()
{
abort ();
}
template class C
{
pub
www.eeworm.com/read/162614/5520604
c explicit24.c
// { dg-do assemble }
// GROUPS passed templates
template
int foo(T t);
int foo(int i) { return 0; } // { dg-error "" } missing template
www.eeworm.com/read/162614/5520614
c explicit13.c
// { dg-do link }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
template
struct S
{
template
void foo(T t);
template
void bar(T t)
www.eeworm.com/read/162614/5520616
c explicit75.c
// { dg-do assemble }
// Test for not complaining about mismatches during unification.
template void f();
template void f();
extern void g(double);
void h ()
{
www.eeworm.com/read/162614/5520624
c explicit57.c
// { dg-do run }
extern "C" void abort ();
int a = 0;
template void f ();
template void g ()
{
if (a)
abort ();
}
template void g ()
{
}
template clas
www.eeworm.com/read/162614/5520631
c explicit16.c
// { dg-do assemble }
// GROUPS passed templates
template
class Array;
template
class ArraySectionInfo {
public:
enum { rank = 0 };
};
template
class SliceInfo