代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/470720/1446001
c explicit9.c
// Build don't link:
// GROUPS passed templates
void foo(int);
void bar()
{
foo(3); // ERROR - foo is not a template.
}
www.eeworm.com/read/470720/1446004
c explicit39.c
template
void f(int i);
void g()
{
f(3); // ERROR - no matching function.
}
www.eeworm.com/read/470720/1446016
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/470720/1446019
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/470720/1446025
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/470720/1446028
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/470720/1446035
c explicit41.c
template
void f(int i);
void g()
{
int i;
f(7); // ERROR - template argument 1 is invalid.
}
www.eeworm.com/read/470720/1446042
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/470720/1446056
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/470720/1446058
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 =