Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliSense issue #13

Open
Tsche opened this issue Dec 12, 2023 · 0 comments
Open

IntelliSense issue #13

Tsche opened this issue Dec 12, 2023 · 0 comments
Assignees

Comments

@Tsche
Copy link
Owner

Tsche commented Dec 12, 2023

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
  }
@Tsche Tsche self-assigned this Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant