Blame testing/064_castoperator.cpp
|
Packit |
1c1d7e |
// objective: test linking to the cast operator with and without const
|
|
Packit |
1c1d7e |
// check: struct_foo.xml
|
|
Packit |
1c1d7e |
/**
|
|
Packit |
1c1d7e |
* @brief Foo
|
|
Packit |
1c1d7e |
*
|
|
Packit |
1c1d7e |
* - No autolink for operator int()
|
|
Packit |
1c1d7e |
* - @ref operator int()
|
|
Packit |
1c1d7e |
* - @ref operator int() "title"
|
|
Packit |
1c1d7e |
* - Foo::operator int()
|
|
Packit |
1c1d7e |
* - @ref Foo::operator int()
|
|
Packit |
1c1d7e |
* - @ref Foo::operator int() "title"
|
|
Packit |
1c1d7e |
*
|
|
Packit |
1c1d7e |
* - No autolink for operator int() const
|
|
Packit |
1c1d7e |
* - @ref operator int() const
|
|
Packit |
1c1d7e |
* - @ref operator int() const "title"
|
|
Packit |
1c1d7e |
* - Foo::operator int() const
|
|
Packit |
1c1d7e |
* - @ref Foo::operator int() const
|
|
Packit |
1c1d7e |
* - @ref Foo::operator int() const "title"
|
|
Packit |
1c1d7e |
*/
|
|
Packit |
1c1d7e |
struct Foo {
|
|
Packit |
1c1d7e |
/** @brief Conversion to int */
|
|
Packit |
1c1d7e |
operator int();
|
|
Packit |
1c1d7e |
/** @brief Conversion to int const */
|
|
Packit |
1c1d7e |
operator int() const;
|
|
Packit |
1c1d7e |
};
|