diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-28 16:57:08 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-28 16:57:08 +0000 |
commit | faccd72e2448b552f17992eaba6cfe12ec497e58 (patch) | |
tree | 06e3b132afb8bbcb2785b9c0e26019434453d0d2 /lib/AST/DeclCXX.cpp | |
parent | 1eb79b58e56b99cf557d5d353586a10c5360364d (diff) |
Fix this for real.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclCXX.cpp')
-rw-r--r-- | lib/AST/DeclCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/DeclCXX.cpp b/lib/AST/DeclCXX.cpp index 46acf67d29..d41e0965bc 100644 --- a/lib/AST/DeclCXX.cpp +++ b/lib/AST/DeclCXX.cpp @@ -489,14 +489,14 @@ CXXConstructorDecl::isCopyConstructor(ASTContext &Context, return true; } -bool CXXConstructorDecl::isConvertingConstructor() const { +bool CXXConstructorDecl::isConvertingConstructor(bool AllowExplicit) const { // C++ [class.conv.ctor]p1: // A constructor declared without the function-specifier explicit // that can be called with a single parameter specifies a // conversion from the type of its first parameter to the type of // its class. Such a constructor is called a converting // constructor. - if (isExplicit()) + if (isExplicit() && !AllowExplicit) return false; return (getNumParams() == 0 && |