You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by if...@apache.org on 2021/10/09 20:31:42 UTC

[rocketmq-client-cpp] branch re_dev updated: fix: noexcept in std::function

This is an automated email from the ASF dual-hosted git repository.

ifplusor pushed a commit to branch re_dev
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-cpp.git


The following commit(s) were added to refs/heads/re_dev by this push:
     new 2adad61  fix: noexcept in std::function
2adad61 is described below

commit 2adad6162d5fa6ba7f72c95a6becde2f1a57d5da
Author: James Yin <yw...@hotmail.com>
AuthorDate: Sun Oct 10 04:06:46 2021 +0800

    fix: noexcept in std::function
---
 src/transport/TcpTransport.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/transport/TcpTransport.h b/src/transport/TcpTransport.h
index b870f69..a2476b1 100755
--- a/src/transport/TcpTransport.h
+++ b/src/transport/TcpTransport.h
@@ -44,8 +44,8 @@ class TcpTransportInfo {
 
 class TcpTransport : public noncopyable, public std::enable_shared_from_this<TcpTransport> {
  public:
-  typedef std::function<void(ByteArrayRef, TcpTransportPtr) noexcept> ReadCallback;
-  typedef std::function<void(TcpTransportPtr) noexcept> CloseCallback;
+  typedef std::function<void(ByteArrayRef, TcpTransportPtr) /* noexcept */> ReadCallback;
+  typedef std::function<void(TcpTransportPtr) /* noexcept */> CloseCallback;
 
  public:
   static TcpTransportPtr CreateTransport(ReadCallback readCallback,