https://bugs.documentfoundation.org/show_bug.cgi?id=145614

Buovjaga <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilmari.lauhakangas@libreoff
                   |                            |ice.org

--- Comment #36 from Buovjaga <[email protected]> ---
(In reply to fpy from comment #35)
> in case like :
> #define PROPERTYCOUNT_POPUPMENU                         4
> #define OFFSET_POPUPMENU_TITLE                          0
> #define OFFSET_POPUPMENU_CONTEXT                        1
> #define OFFSET_POPUPMENU_SUBMENU                        2
> #define OFFSET_POPUPMENU_URL                            3
> 
> any preference to get the *COUNT* ?
> 
> for ref: 
> https://stackoverflow.com/questions/14989274/is-it-possible-to-determine-the-
> number-of-elements-of-a-c-enum-class

In C++26 we will be able to write

std::meta::enumerators_of(^myenum).size()

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p2996r10.html

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to