aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/error.hh
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-05-14 12:28:18 -0600
committerBen Burdette <bburdette@gmail.com>2020-05-14 12:28:18 -0600
commit19694aa213961daa5cbe2263bfaca53dc068a40c (patch)
tree71148d0c29a7c435309810c4cdd0383b87d4e0e3 /src/libutil/error.hh
parent4daccb279c547b90b0c17c8a64825f04abdf0f7e (diff)
fix compile errors
Diffstat (limited to 'src/libutil/error.hh')
-rw-r--r--src/libutil/error.hh16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh
index 19c6e35a1..b374c2780 100644
--- a/src/libutil/error.hh
+++ b/src/libutil/error.hh
@@ -88,20 +88,8 @@ protected:
mutable ErrorInfo err;
mutable std::optional<string> what_;
- const string& calcWhat() const
- {
- if (what_.has_value())
- return *what_;
- else {
- err.name = sname();
-
- std::ostringstream oss;
- oss << err;
- what_ = oss.str();
-
- return *what_;
- }
- }
+ const string& calcWhat() const;
+
public:
unsigned int status = 1; // exit status