From e7b2402b63684b255251cdddabf60b7214b8db67 Mon Sep 17 00:00:00 2001 From: vaclavt Date: Mon, 16 May 2022 20:32:26 +0200 Subject: [PATCH] constexpr instead const --- clib/tcpnet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clib/tcpnet.h b/clib/tcpnet.h index f153d27..49da59c 100644 --- a/clib/tcpnet.h +++ b/clib/tcpnet.h @@ -17,7 +17,7 @@ public: [[nodiscard]] std::vector client(const std::string &address, int portno, const std::vector &requests) const; private: - static const bool USE_LENGTH_HEADER = true; + static constexpr bool USE_LENGTH_HEADER = true; static std::string read_from_socket(int sockfd) ; static void write_to_socket(int sockfd, const std::string &str) ; };