Daily Archives: 10.2.2007

C++ tricks, #1: Compile time checks

While writing a library, you have sometimes to prevent users from making mistakes. To accomplish this, you have two choices: Either include run-time checking and throw an appropriate exception or try to catch as much as possible during compile time. … Continue reading

Posted in Programming | Tagged | 2 Comments