Tag Archives: gcc

Order of parameter evaluation, some pitfalls

Introduction In the C++ world, it’s a good idea to create multiple build configurations for your projects to try out different compilers. Especially when your project is open-source, you never know which compiler (version) people will use in the build … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment

Pure functions in C/C++

Introduction Functions that only depend on their parameters and not on any global state are usually called pure functions. An example of a non-pure function is this: This function is a corner case. It doesn’t depend on the parameters at … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 6 Comments