3 ms·
I don't see it. The email states that writing your own wrappers or accessors is a bad idea (and I agree), but that's not what's going on here -- I'm using the
by aaronmdjones 10y ago
I don't see it.
The email states that writing your own wrappers or accessors is a bad idea (and I agree), but that's not what's going on here -- I'm using the preprocessor to decide which code path to follow based on the version we're building against.
It's as if it was only written for 1.1.0 (when building against 1.1.0), and only written for 1.0.2 (when building against 1.0.2), you get the idea.
The only maintenance burden then is figuring out how to do something in both versions, and adding future preprocessor branches if the API changes again. This is always the case when deciding whether a new library feature is available, anyway.