[llvm-commits] [llvm] r41924 - /llvm/trunk/include/llvm/ADT/APFloat.h
Chris Lattner
sabre at nondot.org
Wed Sep 12 23:15:57 PDT 2007
Author: lattner
Date: Thu Sep 13 01:15:57 2007
New Revision: 41924
URL: http://llvm.org/viewvc/llvm-project?rev=41924&view=rev
Log:
Make single-argument ctors explicit to avoid tricky bugs :)
Modified:
llvm/trunk/include/llvm/ADT/APFloat.h
Modified: llvm/trunk/include/llvm/ADT/APFloat.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APFloat.h?rev=41924&r1=41923&r2=41924&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APFloat.h (original)
+++ llvm/trunk/include/llvm/ADT/APFloat.h Thu Sep 13 01:15:57 2007
@@ -168,9 +168,9 @@
APFloat(const fltSemantics &, const char *);
APFloat(const fltSemantics &, integerPart);
APFloat(const fltSemantics &, fltCategory, bool negative);
- APFloat(double d);
- APFloat(float f);
- APFloat(const APInt &);
+ explicit APFloat(double d);
+ explicit APFloat(float f);
+ explicit APFloat(const APInt &);
APFloat(const APFloat &);
~APFloat();
More information about the llvm-commits
mailing list