Tag Archives: compiler

Radical Refactoring: Have the compiler to (some of) the reviewing

One of the most common sources of bugs is ambiguity: some too-subtle API change that’s missed in a library update and introduces a subtle bug, that finally only gets found out in the field. My answer to that problem is … Continue reading

Posted in Anecdotes, C & C++, C++ for the self-taught, Embedded software development, Radical Refactoring | Tagged , , , | Comments Off on Radical Refactoring: Have the compiler to (some of) the reviewing

Confusing the compiler

Sometimes it’s real fun to see how easily you can confuse the compiler. In the error below, function is a macro that takes three parameters: filename.c(453) : error C2220: warning treated as error – no ‘object’ file generated filename.c(453) : … Continue reading

Posted in Uncategorized | Tagged | Comments Off on Confusing the compiler