Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2003-11-18 19:53:57

On Mon, 17 Nov 2003 10:10:12 -0700, Jeff Garland wrote
> On Mon, 17 Nov 2003 16:23:14 +0100, Michael Haubenwallner wrote
> > Hi,
> >
> > I'm preparing my company's step from C to C++, and when i use
> > boost::date_time::*, there's a great danger to make mistakes
> > like this with boost-1.30.2:
> > ...code snipped...
> > What do you think about this ?
> Jeff Garland replied:
> I'll look into it. On first blush this would probably be reasonable.

Only thing is when I compile your code (after some modifications for b/c of
namespace std usage) on the current CVS I get:

test2.cpp: In function `int main()':
test2.cpp:14: no matching function for call to
candidates are: boost::posix_time::ptime::ptime(const boost::posix_time::ptime&)
         boost::posix_time::ptime::ptime(const boost::posix_time::int64_time_rep&)

So which compiler is doing this conversion for you?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at