4 ms·
Exactly. I worked in a place that disallowed friend functions and classes generally, but explicitly for unit testing. I never wrote another private function. I
by isityouyesitsme 3y ago
Exactly.
I worked in a place that disallowed friend functions and classes generally, but explicitly for unit testing. I never wrote another private function. Instead, there was an explosion at the tiny-free-function-that-could-have-been-a-private-function factory, and the parts ended up everywhere.