Skip to content

Instantly share code, notes, and snippets.

@JIghtuse
Created April 24, 2017 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JIghtuse/9d6df615c113327d7d3fdef85729c3bb to your computer and use it in GitHub Desktop.
Save JIghtuse/9d6df615c113327d7d3fdef85729c3bb to your computer and use it in GitHub Desktop.
Cppcheck variadic template issue
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