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(36) : error C2872: 'time_duration' : ambiguous symbol

          could be
          : boost::posix_time::time_duration'

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

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

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at