[Boost][Container] Non mandatory template parameter not defaulted

Hi, I was reading the boost.container vector sources, and I can't figure how this vector instantiations can work : boost::container::vector<int> foo; considering that the vector definition looks like : template <typename T, typename A> vector; As the second template parameter A has no default type, I believe it's actually mandatory but it's not the case as this : boost::container::vector<Type> compiles fine. I've been reading through the whole source file but I can't find where the trick is. if anyone can enlighten me? ps : sorry for my bad english..

AMDG Mathieu - wrote:
I was reading the boost.container vector sources, and I can't figure how this vector instantiations can work :
boost::container::vector<int> foo;
considering that the vector definition looks like :
template <typename T, typename A> vector;
As the second template parameter A has no default type, I believe it's actually mandatory but it's not the case as this : boost::container::vector<Type> compiles fine.
I've been reading through the whole source file but I can't find where the trick is. if anyone can enlighten me?
The default parameters are in the declaration in container_forward.hpp In Christ, Steven Watanabe

Ah, yes my bad, it was late last night.. I should've wait this morning to post :p. Thanks anyway.
participants (2)
-
Mathieu -
-
Steven Watanabe