代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/470720/1446089
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/470720/1446090
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
www.eeworm.com/read/470720/1446092
c explicit25.c
// Build don't link:
// GROUPS passed templates
template
class S {};
template
void foo(T t, S);
void bar()
{
S s3;
foo("abc", s3);
}
www.eeworm.com/read/470720/1446096
c explicit63.c
extern "C" void abort ();
template void f ()
{
}
template class C
{
friend void f ();
public:
void ff () { f (); }
};
int main ()
{
C c;
c.ff();
}
www.eeworm.com/read/470720/1446099
c explicit38.c
template
void f(int j);
void g()
{
f(3); // ERROR - no matching function.
}
www.eeworm.com/read/470720/1446104
c explicit55.c
template T* create ()
{
return new T;
}
template T* create2()
{
return create();
}
int main()
{
int *p = create2();
}
www.eeworm.com/read/470720/1446130
c explicit35.c
// Build don't run:
// GROUPS passed templates
// Special g++ Options: -ansi -pedantic-errors -w
struct S
{
template
void foo(T t);
};
template
void S::foo(int i) { }
int main
www.eeworm.com/read/470720/1446139
c explicit31.c
// Build don't run:
// GROUPS passed templates
// Special g++ Options: -ansi -pedantic-errors -w
template
struct S
{
template
static double foo(U u) { return (double) u; }
};
www.eeworm.com/read/470720/1446145
c explicit59.c
extern "C" void abort ();
template void f ();
template void g ()
{
abort ();
}
template void g ()
{
abort ();
}
template class C
{
public:
void ff (
www.eeworm.com/read/470720/1446151
c explicit24.c
// Build don't link:
// GROUPS passed templates
template
int foo(T t);
int foo(int i) { return 0; } // ERROR - missing template