|
Boost Users : |
Subject: [Boost-users] [Container] --begin() on empty deque crashes
From: TONGARI (tongari95_at_[hidden])
Date: 2013-01-19 07:06:51
Hi there,
The code below would simply crash on g++ 4.7.1/MinGW with default
optimization level, it doesn't shown with -O/1/2/3
----------------------------------------
boost::container::deque<int> d;
--d.begin();
----------------------------------------
I took a look into the impl, seems that it dereferences from (this->m_node
- 1) which is invalid at the time.
I guess it's the problem.
Thoughts?
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