Boost logo

Boost :

Subject: Re: [boost] bug in boost::container ??
From: Kyle Lutz (kyle.r.lutz_at_[hidden])
Date: 2013-04-18 10:32:32


On Thu, Apr 18, 2013 at 10:20 AM, Olaf Peter <ope-devel_at_[hidden]> wrote:
> Hi,
>
> the attached example confuses me, I've got:
>
> $ g++ -Wall boost_container_bug.cpp -o boost_container_bug &&
> ./boost_container_bug
> (size=4 [1, 2, 3, 4, 0, 4])
>
> $ LANG=en g++ --version
> g++ (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)
> Copyright (C) 2011 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> Did I miss something or is it a bug?

Works as expected with Boost 1.49 and GCC 4.7:

$ ./a.out
(size=4 [1, 2, 3, 4])
$ g++ --version
g++ (Ubuntu/Linaro 4.7.2-5ubuntu1) 4.7.2

-kyle


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