Advertisement
Guest User

Untitled

a guest
May 3rd, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. template <typename <class> class ContainerOf>
  2. class Foo;
  3.  
  4. template <>
  5. class Foo<boost::optional> // works!
  6. {
  7. // ...
  8. };
  9.  
  10. // ERROR! std::vector takes two parameters
  11. // T and Alloc.
  12. template <>
  13. class Foo<std::vector>
  14. {
  15. // ...
  16. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement