What is the meaning of this C++ Error std::length_error

后端 未结 3 2074
小蘑菇
小蘑菇 2021-02-18 13:27

While running my program I get this error:

terminate called after throwing an instance of \'std::length_error\'
  what():  basic_string::_S_create
Abort trap
         


        
3条回答
  •  佛祖请我去吃肉
    2021-02-18 13:40

    I know this is a old question but I just ran into the same issue. Using Linux with gcc.

    Disassembling the function showed a lot of jumps in the code, where the exception was thrown, which shouldn't be there. In the end, a Clean Build resolved the issue for me.

提交回复
热议问题