Created
April 24, 2017 14:20
-
-
Save JIghtuse/9d6df615c113327d7d3fdef85729c3bb to your computer and use it in GitHub Desktop.
Cppcheck variadic template issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <typename> struct a; | |
template <typename> struct b; | |
template <typename... c> struct d : a<b<c...>> {}; | |
int main() {} | |
/* Output: | |
Checking prep.cpp ... | |
##file prep.cpp | |
1: template < typename > struct a ; | |
2: template < typename > struct b ; | |
3: template < typename . . . c > struct d : a < b < c . . . >> { } ; | |
4: int main ( ) { } | |
##Value flow | |
[prep.cpp:3]: (error) syntax error | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment