The code:
#include <iostream>
#include <vector>
#include <deque>
// typedef std::vector<WORK_ORDER_STRU> Test_Vector;
void foo(const std::string p_s)
{
p_s = "end";
}
int main()
{
std::string s = "start";
std::cout << s << endl;
foo(s);
std::cout << s << endl;
}
The problem:
compiles and runs on Solaris 2.8, HPUX 11.0, RedHat Linux 8. Compiles but cores on AIX 4.3.3.11 and 5.2 with VisualAge C++ 5 and 6.
The same problem occurs with vector and deque, vector just takes longer. We've been developing this application on all platforms for about 10 years and this problem just started. I have cores, executables and backtraces if anyone is interested;they aren't too helpful but I'm personally sick of looking at them. Any help, ideas, interest would be greatly appreciated.
#include <iostream>
#include <vector>
#include <deque>
// typedef std::vector<WORK_ORDER_STRU> Test_Vector;
void foo(const std::string p_s)
{
p_s = "end";
}
int main()
{
std::string s = "start";
std::cout << s << endl;
foo(s);
std::cout << s << endl;
}
The problem:
compiles and runs on Solaris 2.8, HPUX 11.0, RedHat Linux 8. Compiles but cores on AIX 4.3.3.11 and 5.2 with VisualAge C++ 5 and 6.
The same problem occurs with vector and deque, vector just takes longer. We've been developing this application on all platforms for about 10 years and this problem just started. I have cores, executables and backtraces if anyone is interested;they aren't too helpful but I'm personally sick of looking at them. Any help, ideas, interest would be greatly appreciated.