|
Tiny Vector Matrix library using Expression Templates | Sourceforge Project Page |
#include <tvmet/TypePromotion.h>
All possible promoted types. For example, bool=1, int=2, float=3, double=4, etc. We can use a traits class to map from a type such as float onto its "precision rank". We will promote to whichever type has a higher "precision rank". f there is no "precision rank" for a type, we'll promote to whichever type requires more storage space (and hopefully more precision).
Public Types | |
enum | { rank = 0, known = 0 } |
anonymous enum |
Author: Olaf Petzold |