Hi,
The following code does not work. Is anyway to make this work?
Thanks,
Peng
enum dirflags {
deg0,
deg45,
deg90,
deg135,
deg180,
deg_135,
deg_90,
deg_45,
N
};
template <dirflags I>
struct angle {
const double theta = I * M_PI / N;
};