26 Feb
2013
26 Feb
'13
12:24 a.m.
AMDG On 02/25/2013 04:16 PM, Ryan wrote:
Steven,
I didn't notice I was getting a linking error for the following code that we discussed. It compiles fine but has an "unresolved external symbol" for the following.
class A { static const metric::nautical_mile_base_unit::unit_type nautical_miles; static const metric::hour_base_unit::unit_type hours; static const decltype(nautical_miles / hours) nautical_miles_per_hour; };
If I move these lines outside the class everything compiles and links fine. What am I missing here?
at namespace scope in A.cpp: const metric::nautical_mile_base_unit::unit_type A::nautical_miles; ... In Christ, Steven Watanabe