Author: loonycyborg
Date: Sat Apr 11 17:52:05 2009
New Revision: 34721

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34721&view=rev
Log:
Fixed "attempt to copy-construct an iterator from a singular iterator" 
glibcxx_debug error

which was caused by passing a default-constructed iterator as default
argument to const_child_iterator's constructor and copy-constructing a member 
from it.

Modified:
    trunk/src/config.hpp

Modified: trunk/src/config.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/config.hpp?rev=34721&r1=34720&r2=34721&view=diff
==============================================================================
--- trunk/src/config.hpp (original)
+++ trunk/src/config.hpp Sat Apr 11 17:52:05 2009
@@ -132,7 +132,8 @@
                typedef const config *pointer;
                typedef const config &reference;
                typedef child_list::const_iterator Itor;
-               explicit const_child_iterator(const Itor &i = Itor()): i_(i) {}
+               explicit const_child_iterator(const Itor &i): i_(i) {}
+               const_child_iterator() {}
                const_child_iterator(const child_iterator &i): i_(i.i_) {}
 
                const_child_iterator &operator++() { ++i_; return *this; }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to