mirror of
https://github.com/NixOS/nix
synced 2025-06-28 22:01:15 +02:00
add has_value check; remove obslete friend class
This commit is contained in:
parent
833501f6f1
commit
d9632765a8
3 changed files with 8 additions and 8 deletions
|
@ -92,9 +92,11 @@ public:
|
|||
{
|
||||
fmt.exceptions(boost::io::all_error_bits ^ boost::io::too_many_args_bit);
|
||||
}
|
||||
|
||||
hintformat(const hintformat &hf)
|
||||
: fmt(hf.fmt)
|
||||
{}
|
||||
|
||||
template<class T>
|
||||
hintformat& operator%(const T &value)
|
||||
{
|
||||
|
@ -102,14 +104,11 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
|
||||
std::string str() const
|
||||
{
|
||||
return fmt.str();
|
||||
}
|
||||
|
||||
template <typename U>
|
||||
friend class AddHint;
|
||||
private:
|
||||
format fmt;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue