代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/162614/5518959
c explicit6.c
// Copyright (C) 2005 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 14 Feb 2005
// Origin: Volker Reichelt
// Bug 19895: ICE on inva
www.eeworm.com/read/162614/5518966
c explicit8.c
namespace N {
template
struct S {
void f() {}
};
namespace I {
template void S::f(); // { dg-error "namespace" }
}
}
namespace K {
template void N::S::f(
www.eeworm.com/read/162614/5519036
c explicit5.c
// { dg-do compile }
// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 27 Jul 2003
// Failed to spot specialization using a template-id
www.eeworm.com/read/162614/5519117
c explicit7.c
// PR c++/22263
// { dg-do link }
template struct S { T foo (); T bar (); };
template T S::foo () { return bar (); }
template struct S;
template T S::bar () {
www.eeworm.com/read/162614/5519160
c explicit3.c
// { dg-do compile }
// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 27 Jul 2003
// Failed to spot specialization using a template-id
www.eeworm.com/read/162614/5519383
c explicit-instantiation.c
// Contributed by Gabriel Dos Reis
// Origin: Jens.Maurer@gmx.net
// { dg-do compile }
// Fixed: PR 3381
namespace N
{
template
class A { };
}
template class ::N
www.eeworm.com/read/162614/5519438
c explicit2.c
struct X {
template void foo(B);
};
template
void bar() {
X().foo(1);
}
template void bar ();
www.eeworm.com/read/162614/5519610
c explicit1.c
// { dg-do assemble }
// Origin: Jason Merrill
struct A
{
A ();
explicit A (int);
};
int main ()
{
const A& r = 1; // { dg-error "" } no suitable constructor
}
www.eeworm.com/read/162614/5520149
c explicit1.c
// { dg-do assemble }
// GROUPS passed templates
template
void foo(T t) {}
void bar()
{
(void (*)(double)) &foo;
}
www.eeworm.com/read/162614/5520158
c explicit56.c
// { dg-do run }
template T* create ();
template T* create2()
{
return create();
}
template T* create ()
{
return new T;
}
int main()
{
int *p = create2