summaryrefslogtreecommitdiffstats
path: root/tests/TestClient.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-13 01:21:23 -0500
committerDavid Robillard <d@drobilla.net>2022-12-14 18:04:27 -0500
commit513296b868df8a3c5a55290d3146cba017418926 (patch)
tree995f1325f06d731a2c86627330d36b6453867334 /tests/TestClient.hpp
parentfa611574101cd657a0716aaf2028b5bc852d4a8a (diff)
downloadingen-513296b868df8a3c5a55290d3146cba017418926.tar.gz
ingen-513296b868df8a3c5a55290d3146cba017418926.tar.bz2
ingen-513296b868df8a3c5a55290d3146cba017418926.zip
Use std::variant
Diffstat (limited to 'tests/TestClient.hpp')
-rw-r--r--tests/TestClient.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/TestClient.hpp b/tests/TestClient.hpp
index f282ee6d..b864928e 100644
--- a/tests/TestClient.hpp
+++ b/tests/TestClient.hpp
@@ -23,7 +23,7 @@
#include "ingen/Status.hpp"
#include "ingen/URI.hpp"
-#include <boost/variant/get.hpp>
+#include <variant>
#include <cstdlib>
@@ -39,7 +39,7 @@ public:
URI uri() const override { return URI("ingen:testClient"); }
void message(const Message& msg) override {
- if (const Response* const response = boost::get<Response>(&msg)) {
+ if (const Response* const response = std::get_if<Response>(&msg)) {
if (response->status != Status::SUCCESS) {
_log.error("error on message %1%: %2% (%3%)\n",
response->id,
@@ -47,7 +47,7 @@ public:
response->subject);
exit(EXIT_FAILURE);
}
- } else if (const Error* const error = boost::get<Error>(&msg)) {
+ } else if (const Error* const error = std::get_if<Error>(&msg)) {
_log.error("error: %1%\n", error->message);
exit(EXIT_FAILURE);
}