Boost logo

Boost :

From: Rodolfo Lima (rodolfo_at_[hidden])
Date: 2003-07-20 23:19:03

it 'seems' that Visual C++ 7.0 with stlport doesn't need the #define
BOOST_NO_USING_TEMPLATES on boost/config/compiler/visualc.hpp. I was trying
to output to cout a boost::posix_time::ptime with no success, the compiler
said that operator<<(ostream &, const boost::posix_time::ptime &) wasn't
defined. Digging out where the problem was, BOOST_NO_USING_TEMPLATES, which
was defined for vc7.0, came by. I've simply commented the #define and the
compiler accepted everything.

For your guidance, here's the path that leads to the compiler error above...
With BOOST_NO_USING_TEMPLATES (boost/config/compiler/visualc.hpp) defined,
BOOST_NO_STD_LOCALE (boost/config/stdlib/stlport.hpp) gets defined, which
cause BOOST_DATE_TIME_NO_LOCALE (boost/date_time/locale_config.hpp) to be
defined and... (ufff) you don't get ostream << operator on date_time::ptime

Is there any other reason for defining BOOST_NO_USING_TEMPLATES on vc7.0 ?
If not, I suggest removing it because of the above consequence.


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