/[ghosts]/ghosts/gedcomparser/src/patterns/SmartPtr.hh
ViewVC logotype

Diff of /ghosts/gedcomparser/src/patterns/SmartPtr.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by cpcp, Sun Feb 9 19:58:07 2003 UTC revision 1.4 by cpcp, Thu Oct 30 20:05:44 2003 UTC
# Line 141  public: Line 141  public:
141        return res;        return res;
142      };      };
143    ///    ///
144     /** Equality operator between SmartPtr<T> and int
145          To be consistent, class T has to handle the equality operator with int
146      */
147    friend bool operator==(SmartPtr<T> const & lhs, int value)    friend bool operator==(SmartPtr<T> const & lhs, int value)
148      {      {
149        bool res;        bool res;
# Line 155  public: Line 158  public:
158          }          }
159        return res;        return res;
160      };      };
   /** Equality operator between SmartPtr<T> and int  
       To be consistent, class T has to handle the equality operator with int  
   */  
161    friend bool operator!=(SmartPtr<T> const & lhs, SmartPtr<T> const & rhs)    friend bool operator!=(SmartPtr<T> const & lhs, SmartPtr<T> const & rhs)
162      {      {
163        return !(lhs==rhs);        return !(lhs==rhs);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26