Browse Source

fixed const decl. typo

[SVN r27741]
Fredrik Blomqvist 21 years ago
parent
commit
69319d60d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      more/generic_exception_safety.html

+ 1 - 1
more/generic_exception_safety.html

@@ -467,7 +467,7 @@ struct TestClass
         : p( ThisCanThrow(), new int( *rhs.p ) ) {} 
         : p( ThisCanThrow(), new int( *rhs.p ) ) {} 
     const TestClass& operator=( const TestClass& rhs ) 
     const TestClass& operator=( const TestClass& rhs ) 
         { ThisCanThrow(); *p = *rhs.p; } 
         { ThisCanThrow(); *p = *rhs.p; } 
-    bool operator==( const TestClass& rhs ) 
+    bool operator==( const TestClass& rhs ) const
         { ThisCanThrow(); return *p == *rhs.p; } 
         { ThisCanThrow(); return *p == *rhs.p; } 
     ...etc... 
     ...etc... 
     ~TestClass() { delete p; } 
     ~TestClass() { delete p; } 

粤ICP备19079148号