From 513296b868df8a3c5a55290d3146cba017418926 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 13 Dec 2022 01:21:23 -0500 Subject: Use std::variant --- src/SocketWriter.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/SocketWriter.cpp') 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 - #include #include #include +#include #ifndef MSG_NOSIGNAL # define MSG_NOSIGNAL 0 @@ -43,7 +42,7 @@ void SocketWriter::message(const Message& message) { TurtleWriter::message(message); - if (boost::get(&message)) { + if (std::get_if(&message)) { // Send a null byte to indicate end of bundle const char end[] = { 0 }; send(_socket->fd(), end, 1, MSG_NOSIGNAL); -- cgit v1.2.1