代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/233448/4675549
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/233448/4691802
cc explicit_instantiation.cc
// Copyright (C) 2004 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms
www.eeworm.com/read/233448/4691818
cc explicit_instantiation.cc
// Copyright (C) 2004 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms
www.eeworm.com/read/233448/4691827
cc explicit_instantiation.cc
// Copyright (C) 2004 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms
www.eeworm.com/read/233448/4691837
cc explicit_instantiation.cc
// Copyright (C) 2004 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms
www.eeworm.com/read/233448/4691877
cc explicit_instantiation.cc
// Copyright (C) 2004 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms
www.eeworm.com/read/233448/4691886
cc explicit_instantiation.cc
// Copyright (C) 2004 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms
www.eeworm.com/read/233448/4691908
cc explicit_instantiation.cc
// Copyright (C) 2004 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms
www.eeworm.com/read/190666/5172764
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/190666/5172950
c explicit1.c
// Origin: Jason Merrill
struct A
{
A ();
explicit A (int);
};
int main ()
{
const A& r = 1; // ERROR - no suitable constructor
}