From: Jeff Garland (jeff_at_[hidden])
Date: 2006-11-10 21:29:23
Matthias Schabel wrote:
> This is on Xcode 2.4 (gcc 4.0.1). I assume that there is a definition
> of "time" somewhere in the standard headers that is polluting the
> global namespace. Has anyone run into this before? Any suggestions?
Yeah, I'm pretty sure I ran into this years ago, but it's foggy now what
platform/compiler. It's at least partially the reason that date_time has
'ptime' instead of just 'time'.
Anyway, Dave's answer is right unless you want to rename the class to
something besides time. I'd guessing that what you are actually representing
is a 'time_duration' as defined by ISO 8601, boost date_time, and others.
That's a different concept than a 'time' which is a dimensionless point in the
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk