|
Boost Users : |
From: Peng Yu (pengyu.ut_at_[hidden])
Date: 2007-10-12 20:37:09
Hi,
Suppose I define a class fixed_point as
class fixed_point{
....some operations are defined here
private:
int _integer_part;
unsigned _fractional_part
}
I want is_arithmetic<fixed_point>::type to be true_
Of cause, I can partially specialize the template class as
template <>
struct is_arithmetic<fixed_point> {
... blah blah
};
If I use the above approach, shall I put it into the namespace boost or not?
Also, I'm wondering if there is any generic way to do this?
Thanks,
Peng
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net