|
Boost : |
From: Eric Niebler (eric_at_[hidden])
Date: 2004-12-08 11:36:25
In range/detail/begin.hpp:
template<>
struct range_begin<array_>
{
template< typename T, std::size_t sz >
static T* fun( T BOOST_ARRAY_REF[sz] )
BOOST_ARRAY_REF is not defined anywhere I can see. This should probably be:
template< typename T, std::size_t sz >
static T* fun( T BOOST_RANGE_ARRAY_REF()[sz] )
----------------------------------
In range/detail/end.hpp:
template<>
struct range_end<char_array_>
{
template< typename T, std::size_t sz >
static std::size_t fun( T BOOST_RANGE_ARRAY_REF()[sz] )
{
return boost::range_detail::array_end( array );
}
};
template<>
struct range_end<wchar_t_array_>
{
template< typename T, std::size_t sz >
static std::size_t fun( T BOOST_RANGE_ARRAY_REF()[sz] )
{
return boost::range_detail::array_end( array );
}
};
The return types of these two functions are wrong. They should be T*
instead of std::size_t.
-- Eric Niebler Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk