boost shared_ptr assertion failed

场景:Boost 智能指针异常shared_ptr Assertion px != 0 failed

Boost 智能指针错误shared_ptr Assertion px != 0 failed

    在使用boost库编程的时候,由于使用了未初始化的智能指针,导致出现了如下的错误:

shared_ptr Assertion px != 0 failed

仔细查看代码,找出哪个智能指针没有初始化,便可以解决这个问题。