Renamed DEPRECATED to SW_DEPRECATED to avoid name conflicts
This commit is contained in:
parent
8598036b73
commit
c52ebc2e60
2 changed files with 6 additions and 6 deletions
|
|
@ -252,7 +252,7 @@ namespace SimpleWeb {
|
|||
}
|
||||
|
||||
/// Deprecated, please use remote_endpoint().address().to_string() instead.
|
||||
DEPRECATED std::string remote_endpoint_address() const noexcept {
|
||||
SW_DEPRECATED std::string remote_endpoint_address() const noexcept {
|
||||
try {
|
||||
if(auto connection = this->connection.lock())
|
||||
return connection->socket->lowest_layer().remote_endpoint().address().to_string();
|
||||
|
|
@ -263,7 +263,7 @@ namespace SimpleWeb {
|
|||
}
|
||||
|
||||
/// Deprecated, please use remote_endpoint().port() instead.
|
||||
DEPRECATED unsigned short remote_endpoint_port() const noexcept {
|
||||
SW_DEPRECATED unsigned short remote_endpoint_port() const noexcept {
|
||||
try {
|
||||
if(auto connection = this->connection.lock())
|
||||
return connection->socket->lowest_layer().remote_endpoint().port();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue