Tag: c++
-

Designing a test methodology for a compiler frontend
A great use case for data-driven testing
-

Running unit tests in parallel with GoogleTest and CMake
An easy way to run your tests in parallel
-

What’s in a constructor?
Would initialization by any other method smell as sweet? Answer: No
-

How not to use shared_ptr to this
Exploring a misuse of std::shared_ptr
-

A weird MSVC error (C2666)
Consider a C++20 program that uses an overloaded == operator, such as the following. In == in main, MSVC gives us this error: Yes, the two alternatives that it tells us it “could be” are identical. What the heck? Clang gives us an infinitely better error (especially the last line): GCC does similar: As is…