0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

BufferType: append() argument can now be a flexible buffer type

Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
James Yonan 2018-10-07 17:03:31 +03:00
parent 2009a8a253
commit dcb0c94520

View File

@ -557,7 +557,8 @@ namespace openvpn {
init_headroom(headroom);
}
void append(const BufferType& other)
template <typename B>
void append(const B& other)
{
write(other.c_data(), other.size());
}