|
Boost Users : |
Subject: Re: [Boost-users] zip_iterator and sTL algorithms like random_shuffle
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-03-31 14:57:23
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/b396fedad7dcdc81/f90aa60e9c22bde6
>
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net