以下是在开发过程中遇到的一些细节点: 1)called after throwing an instance of std::bad_alloc 此问题是由于publish(data),当中data赋值的问题导致的. 2)在用GDB调试CodeBlocks的时候,遇到权限不允许的情况. warning: GDB: Failed to set controlling terminal: Operation not permitted 此问题需要通过设置来解决: 参考资料: http://blog.…