c++

Oct
14

Exception Safety

The article here (http://www.gotw.ca/gotw/082.htm) outlines what it means for code to satisfy the basic exception safety guarantee, however it doesn’t give an example. So I came up with something that is exception unsafe.
Oct
03

countdays: a template metaprogram

Getting the compiler to count so that calculation isn't done at runtime.