liuxiaolong
2021-07-20 58d904a328c0d849769b483e901a0be9426b8209
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)