28 Mar
2003
28 Mar
'03
2:32 p.m.
Black Ice said:
void foo(string & str) { str = "foo"; }
int main(int argc, char * argv[]) { string str1("Hello world"); string str2(str1);
thread trd1(bind(&foo, str1)); thread trd2(bind(&foo, str2)); trd1.join(); trd2.join(); return 0; }
This has been discussed on the developers list. As long as you use the same RTL, you can ignore these warnings. The next release will address this by removing the warnings through pragmas. -- William E. Kempf