Closed JohelEGP closed 10 months ago
I am sorry, but I do not know what you mean. The QUANTITY_SPEC
macro is exactly meant to do it depending on the available C++ features. Do you have some other, better solution in mind that does not use macro and does not require duplicating all definitions?
Oh, no, sorry, I was confused. The macro exists to not have to repeat the name of the type being defined. And there currently is no way to workaround the repetition without macros.
https://mpusz.github.io/mp-units/2.0/users_guide/framework_basics/basic_concepts/#QuantitySpec's examples shows:
It seems to me that
QUANTITY_SPEC
can be refactored into the library by: