gdb is sending SIGINT to executable0119 (1/25/2009 6:52:45 AM) comp.unix.programmer Can you please help me in setting gdb. How can I stop the execution but not send SIGINT to executable ? I am debugging multithreaded executable on Linux. Code is compiled with g++ gdb is set not to pass SIGI... Sushrut
Function overloading: multi dimentional array type parameter3105 (9/13/2007 4:16:37 AM) comp.lang.c++.moderated Can some one please help me to understand C++ behaviour in function overloading. Quote: Parameter declarations that differ only in a pointer * versus an array [] are equivalent. That is, the array declaration ... Sushrut
string literals in overlapping areas of memory5118 (9/7/2007 8:44:33 AM) comp.lang.c++.moderated Quote: draft explicitly allows compilers to store string literals in overlapping areas of memory as a space optimization. Ref: http://www.gotw.ca/gotw/011.htm Can some one please help me to understand how com... Sushrut
goto... is it so bad?115124 (3/26/2007 1:51:56 AM) comp.lang.c++.moderated I recently found goto used in a tiny part of (very large C / C++ mix) code base. I realized that I have never seen goto before (except college time). I was so hammered about so called bad effect of goto that I ... Sushrut
STL non virtual DTOR2374 (2/22/2007 1:21:41 PM) comp.lang.c++.moderated Why did STL designer chose not to make std:list DTOR virtual. making its DTOR virtual will make our life easier, isn't it? Also.. In which case I should do this and which case I should not. class my_generic_l... Sushrut
multiple inheritance590 (12/13/2006 2:15:32 PM) comp.lang.c++.moderated Can you please help me to understand why this code does not compile? I expect foo() to be called from B as signature matches the call. where as if i call ptr->foo(10) then C::foo(int i) should be called. but it... Sushrut
array size known/not known in compile time87109 (11/17/2006 8:42:53 AM) comp.lang.c++.moderated Hello, I was under impression that stack array size *has* to be known in compile time. (assuming we are not using new. as such new 'ed array is not on stack). Am I missing something here? Here is the code whi... Sushrut
std::string bad design????119226 (11/11/2006 3:04:59 PM) comp.lang.c++.moderated The C++ Standard Library offers both good examples (iterators, algorithms, and containers) and bad (string) With my limited C++ skill, I am not able to appreciate the statement. One does not need years to f... bestbrain
C++ standard197163 (7/6/2006 10:24:05 AM) comp.lang.c++.moderated Java is same on every platform. If I write a java compiler or JVM, I HAVE to confirm to java standard. IMHO it has helped JAVA to grow. That's not the case with C++. Code which works perfect on SUN OS sun CC... bestbrain
Different code returned by main874 (7/6/2005 1:30:24 PM) comp.lang.c++.moderated I was under impression that not returning anything from main is same as "return 0;" from main. --------------- int main() { //some code // no return 0. bad practice } Is identical as code below int main() { ... bestbrain