Skip to content

IntelliSense issue #13

@Tsche

Description

@Tsche

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
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions