Boost logo

Boost :

From: Eelis van der Weegen (bstdev-ml_at_[hidden])
Date: 2004-12-31 21:59:39


In a project of mine I use a (global) copy_n function template (that copies the
first n elements of one sequence to another). When I tried using my copy_n with
an iterator returned by multi_array<..>::begin, I got some unexpected argument
mismatches. It turned out that multi_array/algorithm.hpp defines an undocumented
boost::copy_n function template (with a different argument order than my own
copy_n), which was selected instead of my own copy_n due to ADL.

I'm not sure this is a "bug", but it seems to me that this boost::copy_n should
either be documented, or placed in boost::detail so it won't conflict with user
defined copy_n's (like it did in my case).

Regards,

Eelis


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk