Advertisement
Guest User

Untitled

a guest
Jun 6th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // struct with multiple template parameters
  2. template<typename A, typename B = int>
  3. struct C
  4. {
  5.  
  6. };
  7.  
  8. // struct that tries to use C's default second parameter without specifying it
  9. template<typename D, template<typename E, typename ...> class F>
  10. struct G
  11. {
  12. F<D> h;
  13. };
  14.  
  15. int main()
  16. {
  17. G<char, C> i;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement