From 5940971071217ccbd874c3c7ad0c3943f29159e1 Mon Sep 17 00:00:00 2001 From: Russell Greene Date: Tue, 17 Jan 2023 14:43:08 -0600 Subject: [PATCH] mark argument of endpoint copy constructor as const to allow for constructing in libc++ std::varaint --- websocketpp/endpoint.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocketpp/endpoint.hpp b/websocketpp/endpoint.hpp index c124b1d9a..fd9927a99 100644 --- a/websocketpp/endpoint.hpp +++ b/websocketpp/endpoint.hpp @@ -113,7 +113,7 @@ class endpoint : public config::transport_type, public config::endpoint_base { #ifdef _WEBSOCKETPP_DEFAULT_DELETE_FUNCTIONS_ // no copy constructor because endpoints are not copyable - endpoint(endpoint &) = delete; + endpoint(const endpoint &) = delete; // no copy assignment operator because endpoints are not copyable endpoint & operator=(endpoint const &) = delete;