Skip to content

Commit 7244504

Browse files
authored
Remove constexpr from UnAddr constructors (#12426)
1 parent b402182 commit 7244504

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

include/tscore/ink_inet.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,17 +1603,17 @@ struct UnAddr {
16031603
UnAddr() { _path[0] = 0; }
16041604

16051605
UnAddr(self const &addr) { strncpy(_path, addr._path, TS_UNIX_SIZE); }
1606-
explicit constexpr UnAddr(const char *path) { strncpy(_path, path, TS_UNIX_SIZE - 1); }
1607-
explicit constexpr UnAddr(const std::string &path) { strncpy(_path, path.c_str(), TS_UNIX_SIZE); }
1606+
explicit UnAddr(const char *path) { strncpy(_path, path, TS_UNIX_SIZE - 1); }
1607+
explicit UnAddr(const std::string &path) { strncpy(_path, path.c_str(), TS_UNIX_SIZE); }
16081608

1609-
explicit constexpr UnAddr(sockaddr const *addr) { this->assign(addr); }
1610-
explicit constexpr UnAddr(sockaddr_un const *addr) { this->assign(ats_ip_sa_cast(addr)); }
1609+
explicit UnAddr(sockaddr const *addr) { this->assign(addr); }
1610+
explicit UnAddr(sockaddr_un const *addr) { this->assign(ats_ip_sa_cast(addr)); }
16111611
/// Construct from @c IpEndpoint.
1612-
explicit constexpr UnAddr(IpEndpoint const &addr) { this->assign(&addr.sa); }
1612+
explicit UnAddr(IpEndpoint const &addr) { this->assign(&addr.sa); }
16131613
/// Construct from @c IpEndpoint.
1614-
explicit constexpr UnAddr(IpEndpoint const *addr) { this->assign(&addr->sa); }
1614+
explicit UnAddr(IpEndpoint const *addr) { this->assign(&addr->sa); }
16151615
/// Assign sockaddr storage.
1616-
constexpr self &assign(sockaddr const *addr);
1616+
self &assign(sockaddr const *addr);
16171617

16181618
constexpr uint16_t
16191619
family() const
@@ -1639,7 +1639,7 @@ struct UnAddr {
16391639
char _path[TS_UNIX_SIZE];
16401640
};
16411641

1642-
inline constexpr UnAddr &
1642+
inline UnAddr &
16431643
UnAddr::assign(sockaddr const *addr)
16441644
{
16451645
if (addr) {

0 commit comments

Comments
 (0)