lichao
2021-05-17 cab831748a2a9cc18b7f18f3b5e14a4374b7ab68
src/bh_util.h
@@ -157,9 +157,9 @@
   }
protected:
   static inline T &GetData()
   static inline T &GetData(const std::string &msg = "Must set data before use!")
   {
      if (!ptr()) { throw std::string("Must set ShmMsg shm before use!"); }
      if (!ptr()) { throw std::logic_error(msg); }
      return *ptr();
   }