[Commits] [wesnoth/wesnoth] d72aa9: add an operator bool() to unit_map::iterator
GitHub
noreply at github.com
Tue Dec 23 23:51:22 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: d72aa90532aa5f1ad575f8add16335f4953e1842
https://github.com/wesnoth/wesnoth/commit/d72aa90532aa5f1ad575f8add16335f4953e1842
Author: Chris Beck <render787 at gmail.com>
Date: 2014-12-23 (Tue, 23 Dec 2014)
Changed paths:
M src/unit_map.hpp
Log Message:
-----------
add an operator bool() to unit_map::iterator
Semantically equivalent to `unit_map::iterator::valid()`
Uses safe bool idiom when c++11 is not enabled
More information about the Commits
mailing list