
it seems like time.hpp isn't finding the "special_values" type. when compiling with vc7.1 i get this error: C:\Boost\include\boost-1_32\boost\date_time\time.hpp(63) : error C2146: syntax error : missing ')' before identifier 'sv' -- Cory Nelson http://www.int64.org

On Fri, 29 Oct 2004 03:04:52 -0700, Cory Nelson wrote
it seems like time.hpp isn't finding the "special_values" type.
when compiling with vc7.1 i get this error:
C:\Boost\include\boost-1_32\boost\date_time\time.hpp(63) : error C2146: syntax error : missing ')' before identifier 'sv'
Yep, it looks like time.hpp needs to include special_defs.hpp -- however, this problem doesn't come up because most folks are including headers from posix_time which in turn includes these first. What are you actually including? Jeff

I'm including time.hpp directly. If this is not the correct usage, I will change it. However, this worked in 1.31 and is the only error that came up when simply re-compiling with the new version. Maybe this should be changed if only for that reason. On Fri, 29 Oct 2004 08:11:57 -0700, Jeff Garland <jeff@crystalclearsoftware.com> wrote:
On Fri, 29 Oct 2004 03:04:52 -0700, Cory Nelson wrote
it seems like time.hpp isn't finding the "special_values" type.
when compiling with vc7.1 i get this error:
C:\Boost\include\boost-1_32\boost\date_time\time.hpp(63) : error C2146: syntax error : missing ')' before identifier 'sv'
Yep, it looks like time.hpp needs to include special_defs.hpp -- however, this problem doesn't come up because most folks are including headers from posix_time which in turn includes these first. What are you actually including?
Jeff _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Cory Nelson http://www.int64.org

On Fri, 29 Oct 2004 09:22:57 -0700, Cory Nelson wrote
I'm including time.hpp directly. If this is not the correct usage, I will change it. However, this worked in 1.31 and is the only error that came up when simply re-compiling with the new version. Maybe this should be changed if only for that reason.
Well, time.hpp is the really the base class for ptime (and in the 1.33 release local_time). So you really want to include date_time/posix_time/ptime.hpp or date_time/posix_time/posix_time.hpp to get everything including i/o. It's still a bug, but you won't be able to do much with time.hpp alone anyway... Jeff
participants (2)
-
Cory Nelson
-
Jeff Garland