mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-06-25 14:06:27 +02:00
Added noexcept overload for C++11 and later.
This commit is contained in:
parent
ef5bcadd95
commit
33a8d8c30f
@ -629,6 +629,14 @@ private:
|
||||
m_stream.write(buf, static_cast<SizeType>(len));
|
||||
}
|
||||
|
||||
#if !defined(MSGPACK_USE_CPP03)
|
||||
template <typename Ret, typename Cls, typename SizeType>
|
||||
void append_buffer(Ret (Cls::*)(const char*, SizeType) noexcept(true), const char* buf, size_t len)
|
||||
{
|
||||
m_stream.write(buf, static_cast<SizeType>(len));
|
||||
}
|
||||
#endif // !defined(MSGPACK_USE_CPP03)
|
||||
|
||||
private:
|
||||
Stream& m_stream;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user