
21 Oct
2011
21 Oct
'11
3:55 p.m.
AMDG On 10/20/2011 06:24 PM, Michael J Iatauro wrote:
typedef make_scaled_unit
> >::type minute; <snip>
I tried adding
std::string name_string(const minute&) { return "min"; }
std::string symbol_string(const minute&) { return "min"; }
but that didn't change anything. Interestingly, if I change the scale from 60 to 10, it compiles and runs fine. What am I missing?
Where did you put the overloads? They need to go in namespace boost::units, to be found by ADL. In Christ, Steven Watanabe