-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[domain:cpp] decltype or possible nested template issue, bug report auto-requested by sphinx #4094
Comments
Thanks for reporting, there are quite a few things:
|
Righto!
Hmm. Well, to be honest I am really confused now and think this statement may not be accurate. .. cpp:class:: template <class T> has_var<T, internal::void_t<decltype(&T::var)>>
specialization recognizes types that do have a nested ``var`` variable Works...
Flabbergasted is probably the right answer here. I can't reproduce this anymore either. I made a testing repository, but am now no longer able to even get Breathe to find the I started in on all of this from |
This is fixed in my pull request #4096. |
Parsing of |
Subject: bug report of nested template or possible
decltype
hiccup. I lean towarddecltype
being the problem because thefalse_type
is happy. Or maybe it's the&
(there could also be a*
btw).Problem
Procedure to reproduce the problem
In a vanilla
index.rst
:Error logs / results
Sphinx 1.6.4:
For what it's worth, Sphinx 1.6.3's behavior here may actually be better (?). I whittled this down for using pure sphinx directives. I actually came here from a Breathe directive
1.6.3 will warn but accept, 1.6.4 errors out on
assert False
incheckType
.The 1.6.3 implementation is different. The diff
But I'm honestly pretty lost on how one
assert False
(in 1.6.4), but the other doesn't...Please let me know if you'd like me to make a full-fledged example repo (e.g. the problem isn't obvious to you the sphinx-gods) and I will. Breathe requires extra setup (running doxygen, etc).
Expected results
No link error?
Reproducible project / your project
Just paste the
rst
above in any sphinx project.Environment info
The text was updated successfully, but these errors were encountered: