"Jonathan M Davis" <[email protected]> wrote in message 
news:[email protected]...
> On Saturday, March 03, 2012 22:50:10 Daniel Murphy wrote:
>> "H. S. Teoh" <[email protected]> wrote in message
>> news:[email protected]...
>>
>> > Value opIndex(Key key, int file=__FILE__, int line=__LINE__)
>>
>> The AssociateArray stuct has semantic run on it with errors gagged.  Spot
>> the error in the line above!
>
> There are two of them, not one. file is supposed to be a string, and line
> should be a size_t - though in this particular case, using int for line
> probably won't result in a compilation error. It's still not correct 
> though -
> especially when you end up in situations where someone actually gives an
> argument to line rather than letting it be the default.
>
> - Jonathan M Davis

Yeah well, there are several levels between something being wrong and 
something being correct.  Using int instead of string is definately wrong, 
while using int instead of size_t is only wrong on 64bit, or 32bit when 
you're using really really really long files. 


Reply via email to