Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Document default values in initializer list

Ringo
2012-10-09
2013-06-11
  • Ringo
    Ringo
    2012-10-09

    Hi,

    has anyone found a way to document the default values assigned to class members in a C++ initializer list? I have not managed to do this, but it seems like something that would be useful to have in my documentation.

    Thanks.

    Ringo

     
  • Paul A Bristow
    Paul A Bristow
    2012-10-09

    I too have wanted to do this, but have resorted to

    \param i count of thingys (default = 1).

    \tparam T floating-point type (default = double).

    which seems OK, but isn't automated to docs and code will eventually inevitably get out of sync :-(