use default values

This commit is contained in:
Jeff Becker 2019-05-08 11:47:37 -04:00
parent 9b379a1659
commit 3c3dd65760
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 2 additions and 13 deletions

View File

@ -154,19 +154,8 @@ extern "C"
// For utp_writev, to writes data from multiple buffers
struct utp_iovec
{
#ifdef __cplusplus
utp_iovec() : iov_base(nullptr), iov_len(0)
{
}
utp_iovec(const utp_iovec &other)
: iov_base(other.iov_base), iov_len(other.iov_len)
{
}
#endif
void *iov_base;
size_t iov_len;
void *iov_base = nullptr;
size_t iov_len = 0;
};
// Public Functions