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:
parent
2009a8a253
commit
dcb0c94520
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user