aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/Date.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-08-12 15:10:40 +0200
committer Hop311 <hop3114@gmail.com>2023-08-12 15:10:40 +0200
commitafc16e76ba699b24ba1ef1cb1b658ef421c84430 (patch)
treee4bf26ecfef160e7df7670e73af7f154f1550308 /src/openvic/Date.hpp
parent538e7dc4ec44c4d09a6a654f10229e6392653a50 (diff)
std::string const& --> const std::string_view
Diffstat (limited to 'src/openvic/Date.hpp')
-rw-r--r--src/openvic/Date.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic/Date.hpp b/src/openvic/Date.hpp
index f616e3b..2994523 100644
--- a/src/openvic/Date.hpp
+++ b/src/openvic/Date.hpp
@@ -84,7 +84,7 @@ namespace OpenVic {
explicit operator std::string() const;
// Parsed from string of the form YYYY.MM.DD
- static Date from_string(std::string const& date);
+ static Date from_string(const std::string_view date);
};
std::ostream& operator<<(std::ostream& out, Date const& date);
}