summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2017-03-13 08:43:28 (GMT)
committerTobias Markmann <tm@ayena.de>2017-03-13 09:07:42 (GMT)
commit9601c3e0475a4d05c4c245183c787bd7de805be6 (patch)
tree1e9aa5e23a6c517eb8b0f5cdb139808af5afb499 /Swiften/Base/LogSerializers.h
parenta7ea0a4f7899ce7365cdc293089641ac2b39dfb8 (diff)
downloadswift-9601c3e0475a4d05c4c245183c787bd7de805be6.zip
swift-9601c3e0475a4d05c4c245183c787bd7de805be6.tar.bz2
Add LogSerializer for BOSHError
Test-Information: Tested and used it during a recent debugging session on macOS 10.12.3 with recent clang. Change-Id: Ia4883a69a94f962006a39b294d6b9b67e0990541
Diffstat (limited to 'Swiften/Base/LogSerializers.h')
-rw-r--r--Swiften/Base/LogSerializers.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Swiften/Base/LogSerializers.h b/Swiften/Base/LogSerializers.h
index be992bb..b804808 100644
--- a/Swiften/Base/LogSerializers.h
+++ b/Swiften/Base/LogSerializers.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016 Isode Limited.
+ * Copyright (c) 2016-2017 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
@@ -16,6 +16,7 @@
namespace Swift {
class Presence;
+class BOSHError;
template <typename T>
std::ostream& operator<<(std::ostream& stream, const std::shared_ptr<T>& ptr) {
@@ -46,6 +47,8 @@ std::ostream& operator<<(std::ostream& stream, const std::vector<T>& vec) {
std::ostream& operator<<(std::ostream& stream, const Presence& presence);
+std::ostream& operator<<(std::ostream& stream, const BOSHError& boshError);
+
};
::std::ostream& operator<<(::std::ostream& os, const boost::optional<std::string>& optStr);