Re: [OT] C++ templates and debugging (limitations) in Linux

2009-02-01 Thread Kamaraju S Kusumanchi
H.S. wrote: There are more appropriate places than debian-user for C++ questions. Yes. There is a news group for C++, but the people there are topic nazis. Anything not strictly related to the standard is promptly flogged, hanged, skinned and left to dry. :) My query, however, was

Re: [OT] C++ templates and debugging (limitations) in Linux

2009-01-30 Thread H.S.
Daniel Burrows wrote: Personally, I almost only use a debugger to get backtraces after a crash. I find logging statements to be easier, more reliable, and more useful. If you write cout statements directly into your code, of course, it gets cluttered and unwieldly -- I would suggest

Re: [OT] C++ templates and debugging (limitations) in Linux

2009-01-30 Thread Robert Baron
When I have developed template code, I have always started by implementing the same algorithms without the templates. Once the non-template code works and is debugged, I convert it to the template. I have just found using real types is more convenient to think about, and to debug. gdb can be

[OT] C++ templates and debugging (limitations) in Linux

2009-01-29 Thread H.S.
Hello, This is related to templates in C++ and debugging tools we have in Linux (I use gdb, is there any other comparable open source tool?). What do C++ programmers here think about the usefulness of using templates in C++ while keeping in mind how it would work with debugging that program

Re: [OT] C++ templates and debugging (limitations) in Linux

2009-01-29 Thread Nelson Castillo
On Thu, Jan 29, 2009 at 1:47 PM, H.S. hs.sa...@gmail.com wrote: Hello, This is related to templates in C++ and debugging tools we have in Linux (I use gdb, is there any other comparable open source tool?). What do C++ programmers here think about the usefulness of using templates in C++

Re: [OT] C++ templates and debugging (limitations) in Linux

2009-01-29 Thread Mike Bird
On Thu January 29 2009 10:47:27 H.S. wrote: Can C++ programmers here share their recent experience in this regard? I have a program for an engineering problem of around 5000 lines and I need to change some of the data variable from one type to another. Currently I am of the mind to just change

Re: [OT] C++ templates and debugging (limitations) in Linux

2009-01-29 Thread Eugene V. Lyubimkin
H.S. wrote: Hello, This is related to templates in C++ and debugging tools we have in Linux (I use gdb, is there any other comparable open source tool?). What do C++ programmers here think about the usefulness of using templates in C++ while keeping in mind how it would work with

Re: [OT] C++ templates and debugging (limitations) in Linux

2009-01-29 Thread H.S.
Mike Bird wrote: Maintaining one copy instead of two is (almost) always a good idea, and one of the reasons why templates are so valuable. Yes, it is. But here there is this other factor of the suitability of gdb with templates and STL for debugging. I not sure I know the intricacies

Re: [OT] C++ templates and debugging (limitations) in Linux

2009-01-29 Thread Daniel Burrows
On Thu, Jan 29, 2009 at 01:47:27PM -0500, H.S. hs.sa...@gmail.com was heard to say: This is related to templates in C++ and debugging tools we have in Linux (I use gdb, is there any other comparable open source tool?). Not that I know of. I recall that a few years ago (a few version of gdb