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/01/08 10:36:15 UTC

[rocketmq-client-cpp] 01/02: fix: header of std::bad_alloc

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

commit 2cf4836defad2e17d69a7e149ea2cb7598a8e38d
Author: James Yin <yw...@hotmail.com>
AuthorDate: Fri Jan 8 18:35:01 2021 +0800

    fix: header of std::bad_alloc
---
 include/Array.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/Array.h b/include/Array.h
index c1059cf..20fd7b3 100644
--- a/include/Array.h
+++ b/include/Array.h
@@ -20,7 +20,7 @@
 #include <cstdlib>  // std::calloc, std::free
 #include <cstring>  // std::memcpy
 
-#include <stdexcept>    // std::bad_alloc
+#include <new>          // std::bad_alloc
 #include <type_traits>  // std::enable_if, std::is_arithmetic, std::is_pointer, std::is_class
 
 #include "RocketMQClient.h"