boostorg/docca

pydocca: constexpr specifier not rendered for variables

Opened this issue · 1 comments

With a definition like the following:

/// My struct
struct my_struct {
    /// My constant
    static inline constexpr int value = 42;
};

The quickbook template misses the constexpr specifier (actually, the inline one too, but that's not as important).

It looks like the problem is within these lines, which should be considering the constexpr case.

This applies to all types of variables. For instance:

/// The meaning of life
constexpr int life = 42;

Is rendered without the constexpr specifier.