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
Ovanes Markarian wrote:
> This is not standard conform to introduce overloaded functions into std
> namespace. This posting might answer your question:
> 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:
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.
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