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:
parent
7ffb5efdbc
commit
e76ad2e48a
5 changed files with 21 additions and 19 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue