|
From: Francois B. <ig...@gm...> - 2014-07-10 09:58:29
|
Thanks Michael and Peter. This is definitely a wonderful little hidden gem. Wish I knew about this before. I adds a lot of value for the boost classes, but I can't get it to work for Date. It seems you can use only data members, and not functions, e.g. .dayOfMonth(). Do you know of a workaround? In the meantime I'm looking into using EEAdIn ( http://msdn.microsoft.com/en-us/library/8fwk67y3%28v=VS.90%29.aspx ) Francois Botha On 9 July 2014 21:02, Peter Caspers <pca...@gm...> wrote: > Kim wrote something in the same line for QuantLib::Array some time ago > (which may also serve as an example) > > > http://quantlib.10058.n7.nabble.com/Debugging-QuantLib-Array-in-msvc-td7565.html > > Maybe it would be nice to collect such pretty printers for QuantLib > types in the repository (for msvc, gdb, ...) ? > > > > On 9 July 2014 17:37, Michael Sharpe <ma...@gm...> wrote: > > I haven't done this myself for Quantlib, and I don't have the time at the > > moment to help, but if you're using Visual Studio you need to add a > section > > to a file called autoexp.dat. Here's a post on Stack Overflow with a > bunch > > of links describing the process: > http://stackoverflow.com/q/4883238/1181561 > > > > > > On Wed, Jul 9, 2014 at 1:19 AM, Francois Botha <ig...@gm...> wrote: > >> > >> Hi, > >> > >> I was wondering how you guys debug Quantlib, specifically with reference > >> to the dates. I'm from a .NET background, so when I put a breakpoint, > and > >> add some variables to my watches, the dates show in a human readable > format. > >> > >> In C++, the Quantlib dates show only as the internal serial number. In > the > >> Visual Studio Immediate window, I can do someDate.year(), > someDate.month() > >> and someDate.dayOfMonth(), but that is quite cumbersome to do every > time I > >> want to see a dates human readable value. > >> > >> How do you guys do it? > >> > >> Francois Botha > >> > >> > >> > ------------------------------------------------------------------------------ > >> Open source business process management suite built on Java and Eclipse > >> Turn processes into business applications with Bonita BPM Community > >> Edition > >> Quickly connect people, data, and systems into organized workflows > >> Winner of BOSSIE, CODIE, OW2 and Gartner awards > >> http://p.sf.net/sfu/Bonitasoft > >> _______________________________________________ > >> QuantLib-dev mailing list > >> Qua...@li... > >> https://lists.sourceforge.net/lists/listinfo/quantlib-dev > >> > > > > > > > ------------------------------------------------------------------------------ > > Open source business process management suite built on Java and Eclipse > > Turn processes into business applications with Bonita BPM Community > Edition > > Quickly connect people, data, and systems into organized workflows > > Winner of BOSSIE, CODIE, OW2 and Gartner awards > > http://p.sf.net/sfu/Bonitasoft > > _______________________________________________ > > QuantLib-dev mailing list > > Qua...@li... > > https://lists.sourceforge.net/lists/listinfo/quantlib-dev > > > |