Add missing header.

This commit is contained in:
tastytea 2020-01-11 18:13:15 +01:00
parent 597cf41668
commit 40d985f9af
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 1 deletions

View File

@ -18,10 +18,13 @@
#include "instance.hpp"
#include "log.hpp"
#include <exception>
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';
}