summaryrefslogtreecommitdiffstats
path: root/testing/074_ref.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-01-05 18:25:44 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-01-05 18:25:44 (GMT)
commite3f23cf3d8319304d8758db19cfb8c5da398b997 (patch)
treec77211f7f2204836b4b5304bfc1a6cd91e5c6010 /testing/074_ref.cpp
parent8c42b1c0036a727194fe47a2c46230d30df374d8 (diff)
downloadDoxygen-e3f23cf3d8319304d8758db19cfb8c5da398b997.zip
Doxygen-e3f23cf3d8319304d8758db19cfb8c5da398b997.tar.gz
Doxygen-e3f23cf3d8319304d8758db19cfb8c5da398b997.tar.bz2
Double defined operator in test 74
In test 074 the operator `&=` was identically defined twice, now corrected with const. In XHTML this resulted in error: `struct_foo.xhtml:204: element a: validity error : ID aa20bd44b1bb87a652ac65170ddfa1a5a already defined`
Diffstat (limited to 'testing/074_ref.cpp')
-rw-r--r--testing/074_ref.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/074_ref.cpp b/testing/074_ref.cpp
index d283907..cc9cf4a 100644
--- a/testing/074_ref.cpp
+++ b/testing/074_ref.cpp
@@ -13,6 +13,7 @@
* @see @ref operator()(int) "call operator".
* @see @ref operator()(int) const "const call operator".
* @see @ref operator&=(const Foo&) "and equal operator".
+ * @see @ref operator&=(const Foo&) const "const and equal operator".
* @see @ref operator->*(int *) "member pointer operator".
*/
struct Foo {
@@ -43,7 +44,7 @@ struct Foo {
Foo& operator&=(const Foo& rhs);
/** and equal operator */
- Foo& operator&=(const Foo& rhs);
+ const Foo& operator&=(const Foo& rhs) const;
/** Member pointer operator */
int* operator->*(int *p);