diff options
author | David Robillard <d@drobilla.net> | 2022-12-13 01:21:23 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-12-14 18:04:27 -0500 |
commit | 513296b868df8a3c5a55290d3146cba017418926 (patch) | |
tree | 995f1325f06d731a2c86627330d36b6453867334 /src/SocketWriter.cpp | |
parent | fa611574101cd657a0716aaf2028b5bc852d4a8a (diff) | |
download | ingen-513296b868df8a3c5a55290d3146cba017418926.tar.gz ingen-513296b868df8a3c5a55290d3146cba017418926.tar.bz2 ingen-513296b868df8a3c5a55290d3146cba017418926.zip |
Use std::variant
Diffstat (limited to 'src/SocketWriter.cpp')
-rw-r--r-- | src/SocketWriter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/SocketWriter.cpp b/src/SocketWriter.cpp index c705ed96..6bbab6cb 100644 --- a/src/SocketWriter.cpp +++ b/src/SocketWriter.cpp @@ -19,11 +19,10 @@ #include "ingen/URI.hpp" #include "raul/Socket.hpp" -#include <boost/variant/get.hpp> - #include <memory> #include <sys/socket.h> #include <utility> +#include <variant> #ifndef MSG_NOSIGNAL # define MSG_NOSIGNAL 0 @@ -43,7 +42,7 @@ void SocketWriter::message(const Message& message) { TurtleWriter::message(message); - if (boost::get<BundleEnd>(&message)) { + if (std::get_if<BundleEnd>(&message)) { // Send a null byte to indicate end of bundle const char end[] = { 0 }; send(_socket->fd(), end, 1, MSG_NOSIGNAL); |