diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-04-24 12:44:23 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-04-24 12:44:23 -0600 |
commit | d9632765a81604d270bf4693bddd53c22ee189d4 (patch) | |
tree | 1d769acd5a44bad6ee7343ec8485f60a365968bd /src/libutil/fmt.hh | |
parent | 833501f6f11095ae226c13948eb3dc1de2a246ea (diff) |
add has_value check; remove obslete friend class
Diffstat (limited to 'src/libutil/fmt.hh')
-rw-r--r-- | src/libutil/fmt.hh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libutil/fmt.hh b/src/libutil/fmt.hh index d65215063..d182adc3a 100644 --- a/src/libutil/fmt.hh +++ b/src/libutil/fmt.hh @@ -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; }; |