encoding: mark DEPRECATED on Block::fromBuffer overloads with output parameter
refs #2553
Change-Id: I32dd0f497fcdff893d82cf41f456cfa272223dd6
diff --git a/src/encoding/block.hpp b/src/encoding/block.hpp
index 7bd6a88..6ba60ee 100644
--- a/src/encoding/block.hpp
+++ b/src/encoding/block.hpp
@@ -140,8 +140,9 @@
/** @deprecated use fromBuffer(ConstBufferPtr, size_t)
*/
+ DEPRECATED(
static bool
- fromBuffer(const ConstBufferPtr& buffer, size_t offset, Block& block)
+ fromBuffer(const ConstBufferPtr& buffer, size_t offset, Block& block))
{
bool isOk = false;
std::tie(isOk, block) = Block::fromBuffer(buffer, offset);
@@ -163,8 +164,9 @@
/** @deprecated use fromBuffer(const uint8_t*, size_t)
*/
+ DEPRECATED(
static bool
- fromBuffer(const uint8_t* buffer, size_t maxSize, Block& block)
+ fromBuffer(const uint8_t* buffer, size_t maxSize, Block& block))
{
bool isOk = false;
std::tie(isOk, block) = Block::fromBuffer(buffer, maxSize);