Boost logo

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:

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, kalb at, bjorn.karlsson at, gregod at, wekempf at