aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/fmt.hh
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-05-06 14:07:20 -0600
committerBen Burdette <bburdette@gmail.com>2020-05-06 14:07:20 -0600
commite76ad2e48a71aa9804311f4dfb34374a5295b3b6 (patch)
tree1f15bd925884c5353a456e5e622f81436ab4f3ba /src/libutil/fmt.hh
parent7ffb5efdbc943851d2ee9d0573dca3e96b9bd742 (diff)
implement SysError errno handling
Diffstat (limited to 'src/libutil/fmt.hh')
-rw-r--r--src/libutil/fmt.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libutil/fmt.hh b/src/libutil/fmt.hh
index bfacfeb4d..12ab9c407 100644
--- a/src/libutil/fmt.hh
+++ b/src/libutil/fmt.hh
@@ -75,8 +75,8 @@ inline std::string fmt(const std::string & fs, const Args & ... args)
template <class T>
struct yellowtxt
{
- yellowtxt(T &s) : value(s) {}
- T &value;
+ yellowtxt(const T &s) : value(s) {}
+ const T &value;
};
template <class T>
@@ -88,8 +88,8 @@ std::ostream& operator<<(std::ostream &out, const yellowtxt<T> &y)
template <class T>
struct normaltxt
{
- normaltxt(T &s) : value(s) {}
- T &value;
+ normaltxt(const T &s) : value(s) {}
+ const T &value;
};
template <class T>