constexpr instead const
This commit is contained in:
parent
caf1ae0b7d
commit
e7b2402b63
|
|
@ -17,7 +17,7 @@ public:
|
||||||
[[nodiscard]] std::vector<std::string> client(const std::string &address, int portno, const std::vector<std::string> &requests) const;
|
[[nodiscard]] std::vector<std::string> client(const std::string &address, int portno, const std::vector<std::string> &requests) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const bool USE_LENGTH_HEADER = true;
|
static constexpr bool USE_LENGTH_HEADER = true;
|
||||||
static std::string read_from_socket(int sockfd) ;
|
static std::string read_from_socket(int sockfd) ;
|
||||||
static void write_to_socket(int sockfd, const std::string &str) ;
|
static void write_to_socket(int sockfd, const std::string &str) ;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue