Details
-
Bug
-
Resolution: Fixed
-
High
-
None
-
< v5-28-00
-
None
-
All
-
bugs98203
-
Description
this is a copy and paste from: http://root.cern.ch/phpBB3/viewtopic.php?f=3&amp;t=15470&amp;sid=7883219728eb49a8fcdbc973430a47e7&amp;p=66500#p66500
refer to it for additional details:
Hello, today I spent a lot of time to find this bug in my program: I have a function
CODE: SELECT ALL
void function(const TLorentzVector v);
but for some reson I was calling it with
CODE: SELECT ALL
function(integer_value);
it was very difficult because the compiler didn't tell me anything. In fact I found that an integer can be converted to a TLorentzVector
CODE: SELECT ALL
TLorentzVector a;
a = 1.2;
is this a feature? Do we need it? I think it is dangerous