This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 410478c91283d26ad6d776102223c070fc865ada Author: Chris McFarlen <ch...@mcfarlen.us> AuthorDate: Wed Aug 6 09:57:03 2025 -0500 Remove constexpr from UnAddr constructors (#12426) (cherry picked from commit 7244504533e7d0ce13b7b98e4d34219f8132b381) --- include/tscore/ink_inet.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/tscore/ink_inet.h b/include/tscore/ink_inet.h index 2a4fbc363e..2063f18282 100644 --- a/include/tscore/ink_inet.h +++ b/include/tscore/ink_inet.h @@ -1603,17 +1603,17 @@ struct UnAddr { UnAddr() { _path[0] = 0; } UnAddr(self const &addr) { strncpy(_path, addr._path, TS_UNIX_SIZE); } - explicit constexpr UnAddr(const char *path) { strncpy(_path, path, TS_UNIX_SIZE - 1); } - explicit constexpr UnAddr(const std::string &path) { strncpy(_path, path.c_str(), TS_UNIX_SIZE); } + explicit UnAddr(const char *path) { strncpy(_path, path, TS_UNIX_SIZE - 1); } + explicit UnAddr(const std::string &path) { strncpy(_path, path.c_str(), TS_UNIX_SIZE); } - explicit constexpr UnAddr(sockaddr const *addr) { this->assign(addr); } - explicit constexpr UnAddr(sockaddr_un const *addr) { this->assign(ats_ip_sa_cast(addr)); } + explicit UnAddr(sockaddr const *addr) { this->assign(addr); } + explicit UnAddr(sockaddr_un const *addr) { this->assign(ats_ip_sa_cast(addr)); } /// Construct from @c IpEndpoint. - explicit constexpr UnAddr(IpEndpoint const &addr) { this->assign(&addr.sa); } + explicit UnAddr(IpEndpoint const &addr) { this->assign(&addr.sa); } /// Construct from @c IpEndpoint. - explicit constexpr UnAddr(IpEndpoint const *addr) { this->assign(&addr->sa); } + explicit UnAddr(IpEndpoint const *addr) { this->assign(&addr->sa); } /// Assign sockaddr storage. - constexpr self &assign(sockaddr const *addr); + self &assign(sockaddr const *addr); constexpr uint16_t family() const @@ -1639,7 +1639,7 @@ struct UnAddr { char _path[TS_UNIX_SIZE]; }; -inline constexpr UnAddr & +inline UnAddr & UnAddr::assign(sockaddr const *addr) { if (addr) {