A
avidamani
Hi,
I have a c++ application in which I am using stringstream to convert
integer/long to string.
std::stringstream x;
int y = 5;
x << y;
Whenever I do that I get an unalignedd access error and my application
core dumps. The compiler version is :
Compaq C++ V6.5-014 for Compaq Tru64 UNIX V5.1A (Rev. 1885)
Compiler Driver V6.5-014 (cxx) cxx Driver
But when I initialise the stringstream using its constructor before
passing int to it, it works.
std::stringstream x("");
int y = 5;
x << y;
Can anyone help me in finding out what is causing this kind of
behaviour in my application.
Thanks in advance.
Regards,
Avinash
I have a c++ application in which I am using stringstream to convert
integer/long to string.
std::stringstream x;
int y = 5;
x << y;
Whenever I do that I get an unalignedd access error and my application
core dumps. The compiler version is :
Compaq C++ V6.5-014 for Compaq Tru64 UNIX V5.1A (Rev. 1885)
Compiler Driver V6.5-014 (cxx) cxx Driver
But when I initialise the stringstream using its constructor before
passing int to it, it works.
std::stringstream x("");
int y = 5;
x << y;
Can anyone help me in finding out what is causing this kind of
behaviour in my application.
Thanks in advance.
Regards,
Avinash