In C++, it's easy to write something along the lines of:
#ifdef FAST
typedef Real float;
#endif
#ifdef SLOW
typedef Real double;
#endif
#ifdef SLOWER
typedef Real quad;
#endif
In some common header file so I could simply write one version of code and #define the appropriate version to get different binaries.
I know in C# you can do something similar along the lines of:
using Real = double;
So that you can get the similar semantics to typedefs. But is it possible to do something similar to the C++ code above that I wouldn't have to write in every single file?