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

assertion fails with fundamental type in template param #771

Closed
kaamos1 opened this issue Nov 30, 2021 · 1 comment
Closed

assertion fails with fundamental type in template param #771

kaamos1 opened this issue Nov 30, 2021 · 1 comment
Labels
upstream Issue in external software

Comments

@kaamos1
Copy link

kaamos1 commented Nov 30, 2021

Following assertion is thrown when using a fundamental type in template parameter:
https://github.com/michaeljones/breathe/blob/26844b77d805a93bd0df3e14a289d23adcf8ab19/breathe/renderer/sphinxrenderer.py#L2183

example:

template <uint64_t MaxNumberVertices>
class Polygon {
  uint64_t count{MaxNumberVertices};
};

template <long unsigned int N>
void foo(Polygon<N> poly){
    // do stuff
};
@jakobandersen
Copy link
Collaborator

Thanks for reporting! It turns out this is a problem in Sphinx >= 4.2. See sphinx-doc/sphinx#9917. I planning to have it fixed for the next Sphinx release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Issue in external software
Projects
None yet
Development

No branches or pull requests

2 participants