0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 20:28:52 +02:00

ircd::fs: Use string_view for error fmt string args.

This commit is contained in:
Jason Volk 2018-12-24 13:34:23 -08:00
parent 2876398c04
commit 171f5ff623

View file

@ -31,22 +31,22 @@ struct ircd::fs::error
const char *what() const noexcept override; const char *what() const noexcept override;
template<class... args> template<class... args>
error(const char *const &fmt = " ", error(const string_view &fmt = " ",
args&&...); args&&...);
template<class... args> template<class... args>
error(const std::error_code &, error(const std::error_code &,
const char *const &fmt, const string_view &fmt,
args&&...); args&&...);
template<class... args> template<class... args>
error(const std::system_error &, error(const std::system_error &,
const char *const &fmt, const string_view &fmt,
args&&...); args&&...);
template<class... args> template<class... args>
error(const boost::filesystem::filesystem_error &, error(const boost::filesystem::filesystem_error &,
const char *const &fmt, const string_view &fmt,
args&&...); args&&...);
error(const std::error_code &e); error(const std::error_code &e);
@ -56,7 +56,7 @@ struct ircd::fs::error
template<class... args> template<class... args>
ircd::fs::error::error(const boost::filesystem::filesystem_error &e, ircd::fs::error::error(const boost::filesystem::filesystem_error &e,
const char *const &fmt, const string_view &fmt,
args&&... a) args&&... a)
:error :error
{ {
@ -66,7 +66,7 @@ ircd::fs::error::error(const boost::filesystem::filesystem_error &e,
template<class... args> template<class... args>
ircd::fs::error::error(const std::system_error &e, ircd::fs::error::error(const std::system_error &e,
const char *const &fmt, const string_view &fmt,
args&&... a) args&&... a)
:error :error
{ {
@ -76,7 +76,7 @@ ircd::fs::error::error(const std::system_error &e,
template<class... args> template<class... args>
ircd::fs::error::error(const std::error_code &e, ircd::fs::error::error(const std::error_code &e,
const char *const &fmt, const string_view &fmt,
args&&... a) args&&... a)
:std::system_error :std::system_error
{ {
@ -89,7 +89,7 @@ ircd::fs::error::error(const std::error_code &e,
{} {}
template<class... args> template<class... args>
ircd::fs::error::error(const char *const &fmt, ircd::fs::error::error(const string_view &fmt,
args&&... a) args&&... a)
:std::system_error :std::system_error
{ {