18 Dec
2004
18 Dec
'04
1:17 a.m.
I am changing a code base that previously was using the no longer supported array_traits. I use the begin() and end() functions in a lot of places with arrays of integers. I have converted everything to using boost::range::begin() and end(). However, there is a severe collision. begin() and more importantly end() are overloaded for wchar_t. Turns out on Mac OS X, wchar_t is the same as an int. This causes end() to look for a null terminator instead of just using the array length template function. Is there a way I can make range::end() work for real array's of int rather than wchar_t? Thanks for any tips, ...Duane