From 40d985f9af06011281c6e1ed7e8b5dee24630dc6 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 11 Jan 2020 18:13:15 +0100 Subject: [PATCH] Add missing header. --- src/instance.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/instance.cpp b/src/instance.cpp index 72369e5..b7f88cd 100644 --- a/src/instance.cpp +++ b/src/instance.cpp @@ -18,10 +18,13 @@ #include "instance.hpp" #include "log.hpp" +#include + namespace mastodonpp { using std::stoull; +using std::exception; Instance::Instance(const string_view hostname, const string_view access_token) : _hostname{hostname} @@ -65,7 +68,7 @@ uint64_t Instance::get_max_chars() }(); debuglog << "Set _max_chars to: " << _max_chars << '\n'; } - catch (const std::exception &e) + catch (const exception &e) { debuglog << "Unexpected exception: " << e.what() << '\n'; }