Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // struct with multiple template parameters
- template<typename A, typename B = int>
- struct C
- {
- };
- // struct that tries to use C's default second parameter without specifying it
- template<typename D, template<typename E, typename ...> class F>
- struct G
- {
- F<D> h;
- };
- int main()
- {
- G<char, C> i;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement