Subject: Re: [Boost-bugs] [Boost C++ Libraries] #471: boost.range and "const char[]".
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-08-21 21:06:49
#471: boost.range and "const char[]".
-----------------------------+----------------------------------------------
Reporter: sergey_shandar | Owner: nesotto
Type: Bugs | Status: new
Milestone: | Component: range
Version: release 1.34.0 | Severity: Problem
Resolution: Rejected | Keywords:
-----------------------------+----------------------------------------------
Changes (by marshall):
* status: assigned => new
* component: None => range
* severity: => Problem
Old 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;
> }
>
> }}}
New 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;
}
}}}
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/471#comment:8>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC