diff options
author | Hop311 <hop3114@gmail.com> | 2023-05-16 23:31:52 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-05-16 23:31:52 +0200 |
commit | fa7e8d2af880989ba17aa89f7a9cb0905aff5e23 (patch) | |
tree | e26df8e53b37b70f7b88a55770c776d32f71fab4 /src/openvic/Date.hpp | |
parent | cedac2d020ae7e54d8fc5c21e390a306050bc220 (diff) |
Fixed Date ostream << operator
Diffstat (limited to 'src/openvic/Date.hpp')
-rw-r--r-- | src/openvic/Date.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic/Date.hpp b/src/openvic/Date.hpp index 15b7219..61de9ba 100644 --- a/src/openvic/Date.hpp +++ b/src/openvic/Date.hpp @@ -33,7 +33,7 @@ namespace OpenVic { explicit operator double() const; explicit operator std::string() const; }; - std::ostream& operator<< (std::ostream& out, Timespan timespan); + std::ostream& operator<<(std::ostream& out, Timespan const& timespan); // Represents an in-game date // Note: Current implementation does not account for leap-years, or dates before Year 0 @@ -79,5 +79,5 @@ namespace OpenVic { // Parsed from string of the form YYYY.MM.DD static Date from_string(std::string const& date); }; - std::ostream& operator<< (std::ostream& out, Date date); + std::ostream& operator<<(std::ostream& out, Date const& date); } |