Opened 17 years ago

Last modified 15 years ago

#471 closed Bugs (wontfix)

boost.range and "const char[]". — at Initial Version

Reported by: sergey_shandar Owned by: Thorsten Ottosen
Milestone: Component: range
Version: Boost 1.34.0 Severity: Problem
Keywords: Cc:

Description

// Both boost::end(...) and boost::size(...) return
wrong values.
// Compilers: GCC 3.3.4 and VC 7.1.
// A simple example:

#include <boost/range/size.hpp>
#include <boost/test/minimal.hpp>

int test_main(int, char *[])
{
	const char A[] = "\0A";
	BOOST_CHECK(boost::size(A)==2); // failed.
	return 0;
}

Change History (0)

Note: See TracTickets for help on using tickets.