fix wrong RejectNull implementation, thanks to Sam Miller
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@573 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
5c225a1935
commit
9eb276e401
1 changed files with 5 additions and 2 deletions
|
@ -713,10 +713,10 @@ namespace Loki
|
||||||
{}
|
{}
|
||||||
|
|
||||||
static void OnInit(P val)
|
static void OnInit(P val)
|
||||||
{ if (!val) throw NullPointerException(); }
|
{}
|
||||||
|
|
||||||
static void OnDefault(P val)
|
static void OnDefault(P val)
|
||||||
{ OnInit(val); }
|
{}
|
||||||
|
|
||||||
void OnDereference(P val)
|
void OnDereference(P val)
|
||||||
{ OnInit(val); }
|
{ OnInit(val); }
|
||||||
|
@ -1362,6 +1362,9 @@ namespace std
|
||||||
#endif // SMARTPTR_INC_
|
#endif // SMARTPTR_INC_
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.22 2006/02/28 12:59:59 syntheticpp
|
||||||
|
// fix wrong RejectNull implementation, thanks to Sam Miller
|
||||||
|
//
|
||||||
// Revision 1.21 2006/02/27 19:59:20 syntheticpp
|
// Revision 1.21 2006/02/27 19:59:20 syntheticpp
|
||||||
// add support of loki.dll
|
// add support of loki.dll
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue