Re: problem of stringstream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



李玉北 <leeight@xxxxxxxxx> writes:

> i'm using the code snippets
>
> template <class T>
> inline std::string to_string (const T& t)
> {
>     std::stringstream ss;
>     ss << t;
>     return ss.str();
> }
>
> but it cause a core dump sometime.
> this is the backtrack information.
>
> #3  0x000000302d3af59a in operator new () from /usr/lib64/libstdc++.so.6
> No symbol table info available.

A core dump in operator new normally indicates some sort of memory
corruption, often due to using an invalid pointer or overflowing a
buffer.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux