[Boost.PropertyTree] Application hangs (Boost 1.61)

Hi!
It seems to be a bug that this application hangs inside "erase" method:
#include

On 06/24/2016 11:24 PM, Andrew C wrote:
Hi!
It seems to be a bug that this application hangs inside "erase" method:
#include
int main() { boost::property_tree::ptree pt; pt.erase(pt.begin()); // enters infinite loop... } Compiled with Cygwin/GCC-5.4.0.
Is it really a bug or my misuse?
erase(begin()) is equivalent to pop_front. An empty collection does not fulfill the pre-condition for this. What do you expect should happen? Daniel J H
Thanks!
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Andrew C
-
Daniel Hofmann