Boost 1.55 and warning in Boost.Circular

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?

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); }

It is also described in https://svn.boost.org/trac/boost/ticket/7888. To surpress the warning seems dangerous.
participants (1)
-
gast128