summaryrefslogtreecommitdiff
path: root/ASNMP/asnmp/address.h
diff options
context:
space:
mode:
Diffstat (limited to 'ASNMP/asnmp/address.h')
-rw-r--r--ASNMP/asnmp/address.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/ASNMP/asnmp/address.h b/ASNMP/asnmp/address.h
index 6a0f9823feb..1db8adbbd6e 100644
--- a/ASNMP/asnmp/address.h
+++ b/ASNMP/asnmp/address.h
@@ -1,5 +1,7 @@
-/* -*-C++-*- */
+// -*-C++-*-
+
// $Id$
+
#ifndef ADDRESS_
#define ADDRESS_
// ============================================================================
@@ -110,40 +112,40 @@ public:
virtual ~Address();
// allow destruction of derived classes
- friend ASNMP_Export int operator==( const Address &lhs,const Address &rhs);
+ friend ASNMP_Export bool operator==( const Address &lhs,const Address &rhs);
// overloaded equivlence operator, are two addresses equal?
- friend ASNMP_Export int operator!=( const Address &lhs,const Address &rhs);
+ friend ASNMP_Export bool operator!=( const Address &lhs,const Address &rhs);
// overloaded not equivlence operator, are two addresses not equal?
- friend ASNMP_Export int operator>( const Address &lhs,const Address &rhs);
+ friend ASNMP_Export bool operator>( const Address &lhs,const Address &rhs);
// overloaded > operator, is a1 > a2
- friend ASNMP_Export int operator>=( const Address &lhs,const Address &rhs);
+ friend ASNMP_Export bool operator>=( const Address &lhs,const Address &rhs);
// overloaded >= operator, is a1 >= a2
- friend ASNMP_Export int operator<( const Address &lhs,const Address &rhs);
+ friend ASNMP_Export bool operator<( const Address &lhs,const Address &rhs);
// overloaded < operator, is a1 < a2
- friend ASNMP_Export int operator<=( const Address &lhs,const Address &rhs);
+ friend ASNMP_Export bool operator<=( const Address &lhs,const Address &rhs);
// overloaded <= operator, is a1 <= a2
- friend ASNMP_Export int operator==( const Address &lhs,const char *rhs);
+ friend ASNMP_Export bool operator==( const Address &lhs,const char *rhs);
// equivlence operator overloaded, are an address and a string equal?
- friend ASNMP_Export int operator!=( const Address &lhs,const char *rhs);
+ friend ASNMP_Export bool operator!=( const Address &lhs,const char *rhs);
// overloaded not equivlence operator, are an address and string not equal?
- friend ASNMP_Export int operator>( const Address &lhs,const char *rhs);
+ friend ASNMP_Export bool operator>( const Address &lhs,const char *rhs);
// overloaded < , is an address greater than a string?
- friend ASNMP_Export int operator>=( const Address &lhs,const char *rhs);
+ friend ASNMP_Export bool operator>=( const Address &lhs,const char *rhs);
// overloaded >=, is an address greater than or equal to a string?
- friend ASNMP_Export int operator<( const Address &lhs,const char *rhs);
+ friend ASNMP_Export bool operator<( const Address &lhs,const char *rhs);
// overloaded < , is an address less than a string?
- friend ASNMP_Export int operator<=( const Address &lhs,const char *rhs);
+ friend ASNMP_Export bool operator<=( const Address &lhs,const char *rhs);
// overloaded <=, is an address less than or equal to a string?
virtual operator const char *() const = 0;