hello 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. #4 0x000000302d3901de in std::string::_Rep::_S_create () from /usr/lib64/libstdc++.so.6 No symbol table info available. #5 0x000000302d39027c in std::string::_Rep::_M_clone () from /usr/lib64/libstdc++.so.6 No symbol table info available. #6 0x000000302d390723 in std::string::reserve () from /usr/lib64/libstdc++.so.6 No symbol table info available. #7 0x000000302d38ccef in std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::overflow () from /usr/lib64/libstdc++.so.6 No symbol table info available. #8 0x000000302d38e8cf in std::basic_streambuf<char, std::char_traits<char> >::xsputn () from /usr/lib64/libstdc++.so.6 No symbol table info available. #9 0x000000302d3814ea in std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_int<long> () from /usr/lib64/libstdc++.so.6 No symbol table info available. #10 0x000000302d3815f9 in std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::do_put () from /usr/lib64/libstdc++.so.6 No symbol table info available. #11 0x000000302d386e40 in std::ostream::operator<< () from /usr/lib64/libstdc++.so.6 No symbol table info available. #12 0x000000000040e8ec in to_string<int> (t=@0x41dd9ffc) at fui_tools.h:70 ss = <incomplete type> i using gdb debug my program, and x/d 0x41dd9ffc shows the value at address 0x41dd9ffc is 2 i can't figure out what's the problem? $ g++ --version g++ (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2) thanks a lot