3 ms·
I am working on a C++ project and I enjoy it. The bread and butter of C++ is balancing relatively good performance with reasonably acceptable overhead and deve
by cjhanks 8y ago
I am working on a C++ project and I enjoy it.
The bread and butter of C++ is balancing relatively good performance with reasonably acceptable overhead and developer time.
I was personally tired of re-writing over and over.
template <typename Type>
struct PerformOperation {
static void
Op(int&) {} // noop
};
template <>
struct PerformOperation<float> {
static void
Op(int& k) {
// do something
}
};
And all of the specific things you're complaining about... well they're in your control. Do you or your company hold a standard for interfaces or memory tenancy? If not, maybe you need one.