summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-04-06 11:30:10 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-04-06 13:41:17 +0100
commit5ca1bd175cb9d2cc4f3aadd03fa588d87d5bde4a (patch)
tree1d4d49dfb4776353a41ea2f0af271377ab71ef62
parentC++17 (diff)
downloadlibadhocutil-5ca1bd175cb9d2cc4f3aadd03fa588d87d5bde4a.tar.bz2
libadhocutil-5ca1bd175cb9d2cc4f3aadd03fa588d87d5bde4a.tar.xz
libadhocutil-5ca1bd175cb9d2cc4f3aadd03fa588d87d5bde4a.zip
C++17
Remove all boost things now in the standard library from exception.
-rw-r--r--libadhocutil/exception.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libadhocutil/exception.h b/libadhocutil/exception.h
index 57ce7c3..bad9771 100644
--- a/libadhocutil/exception.h
+++ b/libadhocutil/exception.h
@@ -3,7 +3,7 @@
#include <exception>
#include <string>
-#include <boost/optional.hpp>
+#include <optional>
namespace AdHoc {
/// Helper class for lazy creation of exception message text.
@@ -27,7 +27,7 @@ namespace AdHoc {
private:
/// Message text provider.
virtual std::string message() const throw() = 0;
- mutable boost::optional<std::string> msg;
+ mutable std::optional<std::string> msg;
};
typedef Exception<std::exception> StdException;
}