
31 Mar
2009
31 Mar
'09
6:57 p.m.
AMDG Ovanes Markarian wrote:
This is not standard conform to introduce overloaded functions into std namespace. This posting might answer your question: http://groups.google.com/group/comp.lang.c++.moderated/browse_frm/thread/b39...
It is pretty long, but worth reading it all. And that is what Steven means in his previous post, that there is no C++03 standard way to fix it.
Note that a trivial change will make this special case correct: inline void iter_swap<>(ziterator a, ziterator b) because specialization of std library templates is allowed. However, this doesn't work in general because function templates can't be partially specialized. In Christ, Steven Watanabe