RE: Templates
Posted by
Peter Schmitteckert-2 on
Dec 20, 2000; 10:44am
URL: http://quantlib.414.s1.nabble.com/Re-Quantlib-dev-Linux-Port-tp1617p1622.html
Salut Gilbert,
On Die, 19 Dez 2000, you wrote:
>Some headaches I had using templates:
>A few months ago, I wrote some C++ template code using STL templates (which
>in turn contained nested templates). I had problems looking at the value of
>the variables in my Visual C++ debugger because some of the templates were
>resolved into over 20 lines or so. Perhaps I didn't find the option that
>would allow me to collapse the expanded template name into something more
>managable. If there isn't, then templates can make your debugging life much
>more difficult.
>Regards
>Gilbert
I normally create pointer - debug-variables poiting to &(*iterator).
Then you can access the members. Annoying, but it works.
Or, although I'm developping a lot in MS VS 6.0, I often port
it my sources to GCC/Linux fjust or Debugging templated Code with DDD.
Best wishes
Peter