代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/340665/3274463
c explicit27.c
// Build don't run:
// GROUPS passed templates
template
void foo(T t);
template
void foo(int i) {}
int main()
{
(void (*)(int)) &foo;
}
www.eeworm.com/read/340665/3274466
c explicit40.c
extern "C" void abort();
template
void f(int j);
template
void f(int j);
template
void f(int j)
{
abort();
}
template
void f(int j)
{
}
www.eeworm.com/read/340665/3274472
c explicit64.c
extern "C" void abort ();
template void f ()
{
abort ();
}
template void f ()
{
}
template class C
{
friend void f ();
public:
void ff () { f ();
www.eeworm.com/read/340665/3274475
c explicit12.c
// Build don't run:
// Special g++ Options: -ansi -pedantic-errors -w
// GROUPS passed templates
template
struct S
{
template
void foo(T t);
};
template
template
void
www.eeworm.com/read/340665/3274482
c explicit41.c
template
void f(int i);
void g()
{
int i;
f(7); // ERROR - template argument 1 is invalid.
}
www.eeworm.com/read/340665/3274489
c explicit21.c
// Build don't link:
// GROUPS passed templates
template
T foo(T* t);
template
int foo(char c); // ERROR - does not match declaration.
template
int bar(); // ERROR - no t
www.eeworm.com/read/340665/3274503
c explicit3.c
// Build don't link:
// GROUPS passed templates
template
void foo(T t, U u) {}
void bar()
{
(void (*)(double, int)) &foo;
}
www.eeworm.com/read/340665/3274505
c explicit68.c
// Build don't link:
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/340665/3274536
c explicit70.c
// Build don't link:
template
void f(T) {}
template
struct S {
static T t;
};
template
T S::t;
template void f(int);
template void f(int); // ERROR - duplicate e
www.eeworm.com/read/340665/3274537
c explicit81.c
// Build don't link:
//
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 10 Aug 2000
// bug 371 We failed to subst explicit template ar