064_castoperator.cpp
Go to the documentation of this file.
1 // objective: test linking to the cast operator with and without const
2 // check: struct_foo.xml
3 /**
4  * @brief Foo
5  *
6  * - No autolink for operator int()
7  * - @ref operator int()
8  * - @ref operator int() "title"
9  * - Foo::operator int()
10  * - @ref Foo::operator int()
11  * - @ref Foo::operator int() "title"
12  *
13  * - No autolink for operator int() const
14  * - @ref operator int() const
15  * - @ref operator int() const "title"
16  * - Foo::operator int() const
17  * - @ref Foo::operator int() const
18  * - @ref Foo::operator int() const "title"
19  */
20 struct Foo {
21  /** @brief Conversion to int */
22  operator int();
23  /** @brief Conversion to int const */
24  operator int() const;
25 };