Просмотр исходного кода

fixed const decl. typo

[SVN r27741]
Fredrik Blomqvist 21 лет назад
Родитель
Сommit
69319d60d2
1 измененных файлов с 1 добавлено и 1 удалено
  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 ) ) {} 
     const TestClass& operator=( const TestClass& rhs ) 
         { ThisCanThrow(); *p = *rhs.p; } 
-    bool operator==( const TestClass& rhs ) 
+    bool operator==( const TestClass& rhs ) const
         { ThisCanThrow(); return *p == *rhs.p; } 
     ...etc... 
     ~TestClass() { delete p; } 

粤ICP备19079148号