Login  Register

Leap Years in the Date class

Posted by alex on Mar 22, 2015; 1:53am
URL: http://quantlib.414.s1.nabble.com/Leap-Years-in-the-Date-class-tp16392.html

Hi,

I was looking at date.cpp and noticed this [0]. I realize that 2200 is far off, but this section made me wince.

Is there any interest in (or reason against) redoing this section so that it lazily populates an array, instead of having one hard coded? I have some spare time this weekend.

[0] https://github.com/lballabio/quantlib/blob/master/QuantLib/ql/time/date.cpp#L208


Thanks,
Alex

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev