Writing Code Inside Out Using Lambdas

I’ve read in a few places now that the C++ of today isn’t the C++ of yesterday, and I agree with that. It’s come so far. Strangely, I find myself writing sections of my C++ code more like I write Javascript. Before you tar and feather me, let me explain… C++’s later specifications—C++11, C++14, etc.—include […]

Errors From Another Planet–GCC vs. Clang Illegal Instruction

Sometimes when I get difficult-to-read output from GCC, I’ll switch to Clang for a little more human-readable output. In rare instances, Clang will give me different results at runtime. For instance, a function with a non-void return type that doesn’t have a return statement will crash a program built with Clang, but not GCC. If […]