Blame testing/064_castoperator.cpp

Packit Service 50c9f2
// objective: test linking to the cast operator with and without const
Packit Service 50c9f2
// check: struct_foo.xml
Packit Service 50c9f2
/**
Packit Service 50c9f2
 * @brief Foo
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * - No autolink for operator int()
Packit Service 50c9f2
 * - @ref operator int()
Packit Service 50c9f2
 * - @ref operator int() "title"
Packit Service 50c9f2
 * - Foo::operator int()
Packit Service 50c9f2
 * - @ref Foo::operator int()
Packit Service 50c9f2
 * - @ref Foo::operator int() "title"
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * - No autolink for operator int() const
Packit Service 50c9f2
 * - @ref operator int() const
Packit Service 50c9f2
 * - @ref operator int() const "title"
Packit Service 50c9f2
 * - Foo::operator int() const
Packit Service 50c9f2
 * - @ref Foo::operator int() const
Packit Service 50c9f2
 * - @ref Foo::operator int() const "title"
Packit Service 50c9f2
 */
Packit Service 50c9f2
struct Foo {
Packit Service 50c9f2
  /** @brief Conversion to int */
Packit Service 50c9f2
  operator int();
Packit Service 50c9f2
  /** @brief Conversion to int const */
Packit Service 50c9f2
  operator int() const;
Packit Service 50c9f2
};