-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Tracking this here so it doesn't get lost
@TheNitesWhoSay noted
aggregate counter was disabling intellisense (at least in vs2019), my two fixes - if they interest you - were to take the default param off of minus (which killed intellisense regardless of whether the code was used at all), and return a 0-count if in intellisense (which helps avoid killing it if the code is used)
https://github.com/Tsche/repr/blob/master/include/librepr/reflection/detail/arity.h
static consteval auto arity(std::size_t minus = 0, auto... parameters) {
// regular content
} static consteval auto arity(std::size_t minus, auto... parameters) {
#ifdef __INTELLISENSE__
return minus;
#else
// regular content
#endif
}Metadata
Metadata
Assignees
Labels
No labels