undo disabling checking, remove warnings, many thanks to Sam Miller
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@574 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
9eb276e401
commit
867fb85151
1 changed files with 7 additions and 4 deletions
|
@ -712,17 +712,17 @@ namespace Loki
|
||||||
RejectNull(const RejectNull<P1>&)
|
RejectNull(const RejectNull<P1>&)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
static void OnInit(P val)
|
static void OnInit(P)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
static void OnDefault(P val)
|
static void OnDefault(P)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void OnDereference(P val)
|
void OnDereference(P val)
|
||||||
{ OnInit(val); }
|
{ if (!val) throw NullPointerException(); }
|
||||||
|
|
||||||
void OnDereference(P val) const
|
void OnDereference(P val) const
|
||||||
{ OnInit(val); }
|
{ if (!val) throw NullPointerException(); }
|
||||||
|
|
||||||
void Swap(RejectNull&)
|
void Swap(RejectNull&)
|
||||||
{}
|
{}
|
||||||
|
@ -1362,6 +1362,9 @@ namespace std
|
||||||
#endif // SMARTPTR_INC_
|
#endif // SMARTPTR_INC_
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.23 2006/02/28 16:55:56 syntheticpp
|
||||||
|
// undo disabling checking, remove warnings, many thanks to Sam Miller
|
||||||
|
//
|
||||||
// Revision 1.22 2006/02/28 12:59:59 syntheticpp
|
// Revision 1.22 2006/02/28 12:59:59 syntheticpp
|
||||||
// fix wrong RejectNull implementation, thanks to Sam Miller
|
// fix wrong RejectNull implementation, thanks to Sam Miller
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue