1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 16:51:15 +02:00

implement SysError errno handling

This commit is contained in:
Ben Burdette 2020-05-06 14:07:20 -06:00
parent 7ffb5efdbc
commit e76ad2e48a
5 changed files with 21 additions and 19 deletions

View file

@ -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>