problem:
出问题是因为忘了new 了,尴尬!!!!!!!
具体用法:
1.
typedef struct request{
std::string message_type;
int id;
float x;
float y;
}reques_t;
2.
request_t *msg_to_r_ = nullptr;
3.
msg_to_r_ = new request_t();
4.
msg_to_r_->x = 1;
msg_to_r_->y = 2;
xxx
bug:
Initialize (this=0xc0854801e083008b, json_config=<error reading variable: Cannot access memory at address 0x48f8458b48108b48>)