代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/240162/4582384
c explicit1.c
// { dg-do assemble }
struct A1 {
explicit A1(int) { }
} a1(1);
struct A {
explicit A(int);
} a(1);
A::A(int) {
}
void foo(A a) {
foo(a);
foo(1); // { dg-error "" } not allowed
}
www.eeworm.com/read/240162/4582731
c explicit2.c
// { dg-do assemble }
class string {
public:
string(const char*) { }
explicit string(int size) { }
};
void foo(string) { }
string bar() {
foo("hello"); // ok
foo(string(2)); // ok
foo
www.eeworm.com/read/235100/4654349
h explicit_gop.h
/*!
*************************************************************************************
* \file explicit_gop.h
*
* \brief
* Functions for explicit gop and pyramid support
*
* \aut
www.eeworm.com/read/235100/4654419
c explicit_gop.c
/*!
*************************************************************************************
* \file explicit_gop.c
*
* \brief
* Code for explicit gop support and pyramidal coding.
*
*
www.eeworm.com/read/233448/4671419
c explicit1.c
// { dg-do compile }
// Origin: stefaandr@hotmail.com
// PR c++/12403: ICE when explicit specialization is not in
// namespace scope.
struct foo {
template void bar (T &t) {}
www.eeworm.com/read/233448/4672453
c explicit1.c
// { dg-do link }
// { dg-options "-fno-implicit-templates" }
template struct C {
~C();
};
template C::~C() {}
struct X {
C *p;
~X() { delete p; }
};
template class
www.eeworm.com/read/233448/4672469
c explicit4.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/233448/4672499
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/233448/4672564
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/233448/4672676
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