代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/240162/4581244
c explicit3.c
// { dg-do assemble }
// GROUPS passed templates
template
void foo(T t, U u) {}
void bar()
{
(void (*)(double, int)) &foo;
}
www.eeworm.com/read/240162/4581246
c explicit68.c
// { dg-do assemble }
template
struct S
{
static void g();
};
template
void g();
template
void f()
{
const bool b = true;
g();
const bool b1 = (Length
www.eeworm.com/read/240162/4581277
c explicit70.c
// { dg-do assemble }
template
void f(T) {}
template
struct S {
static T t;
};
template
T S::t;
template void f(int);
template void f(int); // { dg-error "" } d
www.eeworm.com/read/240162/4581278
c explicit81.c
// { dg-do assemble }
//
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 10 Aug 2000
// bug 371 We failed to subst explicit template
www.eeworm.com/read/240162/4581280
c explicit25.c
// { dg-do assemble }
// GROUPS passed templates
template
class S {};
template
void foo(T t, S);
void bar()
{
S s3;
foo("abc", s3);
}
www.eeworm.com/read/240162/4581284
c explicit63.c
// { dg-do run }
extern "C" void abort ();
template void f ()
{
}
template class C
{
friend void f ();
public:
void ff () { f (); }
};
int main ()
{
C c;
www.eeworm.com/read/240162/4581287
c explicit38.c
// { dg-do assemble }
template
void f(int j);
void g()
{
f(3); // { dg-error "" } no matching function.
}
www.eeworm.com/read/240162/4581292
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/240162/4581318
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/240162/4581327
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