I'm compiling with VS10, and using Boost 1.49.0
“reference member is initialized to a temporary that doesn't persist after the constructor
exits”
That does not sound good, and browsing through the mailing list archives I see discussions
of regressions in 2010 that cite C4413 and use of emplace.
I can't read the source code because it's just a ball of preprocessor stuff. Is this a
real problem or a warning that can be ignored? I would think that if Boost.Container was
broken on VS10, it would be mentioned somewhere where it's easy to spot.
Thanks,
—John
E:\boost_1_49\boost/preprocessor/iteration/detail/local.hpp(37): warning C4413:
'boost::container::container_detail::advanced_insert_aux_non_movable_emplace1arg::m_p0'
: reference member is initialized to a temporary that doesn't persist after the
constructor exits
with
[
A=std::allocator
El 23/12/2013 20:41, John M. Dlugosz escribió:
I'm compiling with VS10, and using Boost 1.49.0 “reference member is initialized to a temporary that doesn't persist after the constructor exits” That does not sound good, and browsing through the mailing list archives I see discussions of regressions in 2010 that cite C4413 and use of emplace. I can't read the source code because it's just a ball of preprocessor stuff. Is this a real problem or a warning that can be ignored? I would think that if Boost.Container was broken on VS10, it would be mentioned somewhere where it's easy to spot.
I think this is related to the early and non-conforming VC2010 rvalue reference implementation. A workaround was found and the issue was fixed in later Boost releases. Best, Ion
participants (2)
-
Ion Gaztañaga
-
John M. Dlugosz