Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-09-03 14:27:24


This is causing an ambiguity:

  using namespace boost::date_time;
  using namespace boost::posix_time;
  time_duration since_1970 = d - 1/Jan/1970;

The error was:

  DateField.cpp
  DateField.cpp(36) : error C2872: 'time_duration' : ambiguous symbol

          could be
          'c:\boost\boost\date_time\posix_time\posix_time_config.hpp(60)
          : boost::posix_time::time_duration'

          or 'c:\boost\boost\date_time\time_duration.hpp(166) :
          boost::date_time::time_duration'

Is it really right for us to have two time_durations? I never
expected this since boost::date_time::time_duration is nowhere
documented.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk