Where should I look at if I want to switch between float and double precision at compile time. Its like, if user wants everything in float instead of double precision how I
I prefer not to have #defines in my code.
#define
I would have two different headers with two different typedefs, and allow build options to choose which header is included.
typedef