|
Boost Users : |
Subject: Re: [Boost-users] Boost 1.55 and warning in Boost.Circular
From: gast128 (gast128_at_[hidden])
Date: 2013-11-14 07:08:39
gast128 <gast128 <at> hotmail.com> writes:
>
> Hello all,
>
> I just dl 1.55 and I got a warning:
>
> D:\Develop\SDK and
> Libraries\boost_1_55_0\boost/circular_buffer/base.hpp(199): warning C4172:
> returning address of local variable or temporary
>
> Code is crytpic due to all the templates. Is this a client error?
>
It is easy reproducable on vs2010, sp1:
#include <boost\circular_buffer.hpp>
void f()
{
boost::circular_buffer<std::pair<bool, double>> cb;
cb.resize(1);
}
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net