Coder Social home page Coder Social logo

Comments (4)

albert-github avatar albert-github commented on June 2, 2024
  • Can you please attach a, small, self contained example (source+configuration file in a, compressed, tar or zip file!) that allows us to reproduce the problem? Please don't add external links as they might not be persistent (also references to GitHub repositories are considered non persistent).
  • Please also specify the full doxygen version used (doxygen -v).

from doxygen.

eyalroz avatar eyalroz commented on June 2, 2024

@albert-github : I can't, because this is not a problem, it's a feature request. But I will attach a couple of source files in which this feature could be used. See edit of first post.

from doxygen.

albert-github avatar albert-github commented on June 2, 2024

I can't, because this is not a problem, it's a feature request. But I will attach a couple of source files in which this feature could be used. See edit of first post.

Well you managed to add a nice example to the original post that can be used as a starting point to see what is necessary / wanted.

I looked at the classes example and here I see that the functions bar and quux don't have the same signature as they return a different type of argument (A& and B&). Can't this problem be implemented with templates and sub / super classes?

from doxygen.

eyalroz avatar eyalroz commented on June 2, 2024

I looked at the classes example and here I see that the functions bar and quux don't have the same signature as they return a different type of argument (A& and B&). Can't this problem be implemented with templates and sub / super classes?

With templates - yes and no, because if A becomes MyClass<0> and B becomes MyClass<1>, specialized differently - the respective methods would still need to return MyClass<0>& and MyClass<1>& respectively; and those are two different return types. Even if one managed to phrase them the same way, e.g. via static constexpr const the_template_argument which gets 0 or respectively 1, and a method returning MyClass<the_teplate_argument> - it's still a different class.

As for using superclasses - that won't help, because then you can't use methods of the subclass, i.e. I want to write something like make_an_A().bar(123).foo() (builder pattern).

I was assuming that name + parameters should be enough for referencing in doxygen (i.e. @ref, @copydoc, @copyparam, etc. etc.)

from doxygen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.