[wesnoth-commits] [wesnoth/wesnoth] f1f876: Made optional_reference::ptr return nullptr of no ...
Charles Dang
noreply at github.com
Mon Feb 15 17:17:54 UTC 2021
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: f1f8769f7d2ecfe3a044b8f51c4fe3a4fe24ac9d
https://github.com/wesnoth/wesnoth/commit/f1f8769f7d2ecfe3a044b8f51c4fe3a4fe24ac9d
Author: Charles Dang <exodia339 at gmail.com>
Date: 2021-02-16 (Tue, 16 Feb 2021)
Changed paths:
M src/utils/optional_reference.hpp
Log Message:
-----------
Made optional_reference::ptr return nullptr of no reference is held
Makes more sense than propagating the exception from value(). operator-> *should* throw without value, though, so that was retained.
More information about the Commits
mailing list