From 58d904a328c0d849769b483e901a0be9426b8209 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 20 七月 2021 20:20:44 +0800
Subject: [PATCH] 调整Request C.BHFree的位置

---
 src/msg.h |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/msg.h b/src/msg.h
index f0ed840..3ca20d4 100644
--- a/src/msg.h
+++ b/src/msg.h
@@ -22,8 +22,6 @@
 #include "proto.h"
 #include "shm.h"
 #include <atomic>
-#include <boost/interprocess/offset_ptr.hpp>
-#include <functional>
 #include <stdint.h>
 
 class ShmSocket;
@@ -44,7 +42,8 @@
 
 	public:
 		RefCount() :
-		    num_(1) { static_assert(std::is_pod<decltype(num_)>::value); }
+		    num_(1) { }
+		    // num_(1) { static_assert(std::is_pod<decltype(num_)>::value); }
 		int Inc() { return ++num_; }
 		int Dec() { return --num_; }
 		int Get() { return num_.load(); }
@@ -91,8 +90,6 @@
 
 private:
 	Meta *meta() const { return get<Meta>() - 1; }
-
-	typedef std::function<void(void *p, int len)> ToArray;
 
 	template <class Body>
 	void *Pack(const BHMsgHead &head, const uint32_t head_len, const Body &body, const uint32_t body_len)

--
Gitblit v1.8.0