Home » U++ Library support » U++ Core » Core: Null handling incoherent?
Re: Core: Null handling incoherent? [message #33812 is a reply to message #32255] |
Thu, 15 September 2011 12:57   |
 |
mirek
Messages: 14265 Registered: November 2005
|
Ultimate Member |
|
|
kohait00 wrote on Wed, 04 May 2011 04:46 | hi all,
i'm wondering why
template <class T> bool IsNull(const T& x) { return x.IsNullInstance(); }
and not
template <class T> bool IsNull(const T& x) { return x.IsNull(); }
is there a reason for it? name clashes??
|
Think about:
void Ctrl::TestSomething()
{
String x = Something();
if(IsNull(x)) ...
}
Mirek
[Updated on: Thu, 15 September 2011 12:57] Report message to a moderator
|
|
|
 |
|
Core: Null handling incoherent?
|
 |
|
Re: Core: Null handling incoherent?
|
 |
|
Re: Core: Null handling incoherent?
|
 |
|
Re: Core: Null handling incoherent?
By: mirek on Fri, 06 May 2011 09:55
|
 |
|
Re: Core: Null handling incoherent?
|
 |
|
Re: Core: Null handling incoherent?
By: mirek on Fri, 06 May 2011 13:06
|
 |
|
Re: Core: Null handling incoherent?
|
 |
|
Re: Core: Null handling incoherent?
|
 |
|
Re: Core: Null handling incoherent?
|
 |
|
Re: Core: Null handling incoherent?
By: mirek on Thu, 07 July 2011 10:29
|
 |
|
Re: Core: Null handling incoherent?
|
 |
|
Re: Core: Null handling incoherent?
By: kohait00 on Tue, 13 September 2011 18:08
|
 |
|
Re: Core: Null handling incoherent?
By: cbpporter on Wed, 14 September 2011 09:46
|
 |
|
Re: Core: Null handling incoherent?
By: kohait00 on Wed, 14 September 2011 12:46
|
 |
|
Re: Core: Null handling incoherent?
By: mirek on Fri, 06 May 2011 09:52
|
 |
|
Re: Core: Null handling incoherent?
By: mirek on Thu, 15 September 2011 12:57
|
 |
|
Re: Core: Null handling incoherent?
By: kohait00 on Thu, 15 September 2011 14:29
|
 |
|
Re: Core: Null handling incoherent?
By: mirek on Thu, 15 September 2011 15:34
|
 |
|
Re: Core: Null handling incoherent?
By: kohait00 on Thu, 15 September 2011 16:30
|
 |
|
Re: Core: Null handling incoherent?
By: mirek on Fri, 16 September 2011 10:26
|
 |
|
Re: Core: Null handling incoherent?
By: kohait00 on Fri, 16 September 2011 15:26
|
Goto Forum:
Current Time: Sun Jul 06 12:46:51 CEST 2025
Total time taken to generate the page: 0.03487 seconds
|