Cannot substitute non-type template argument ... for non-type template parameter ...
We have a problem where some of our template Code causes ReSharper C++ to fail to parse it completely.
That is, it is not an analysis error, ReSharper just reports a compiler error for the call of our template function/macro.
As such, affected code gets drowned in red. Since ReSharper support is ignoring me at the moment (6d since ticket #8253661 creation) I thought I'd post here to see if anyone has some workaround for when ReSharper stumbles of some code that VS will compile just fine?
We have not yet got #ifdef __RESHARPER__ to work for us (as mentioned here: https://resharper-support.jetbrains.com/hc/en-us/community/posts/20526784261778-Re-C-Syntax-Parsing-and-INTELLISENSE?page=1#community_comment_20623917820690 )
Is that something we should try harder, or are there any other recommendations?
I'm intentionally leaving out the error and code details here - would be interested in generic workarounds or maybe a link on how to actually get __RESHARPER__ to work.
Please sign in to leave a comment.
Hello,
Thanks for the repro solution! I don't see any errors with R# 2025.3, could you please try updating to this version?
__RESHARPER__ should work, could you please describe what you tried and what's not working for you?
Thanks!
My first tests also indicate that this is fixed in 2025.3
Wrt. __RESHARPER__ … when we tried it, we were unsure where to apply it so that the code still compiles. I would have to create a repro for that.