Boost logo

Boost :

From: Samuel Krempp (krempp_at_[hidden])
Date: 2004-01-23 10:46:23


boost::format compilation fails with what seems to be a boost::optional
issue.
http://boost.sourceforge.net/regression-logs/cs-win32_metacomm/links.html#format_test1-borland-5.6.4
says :
Ambiguity between
1.
operator boost::optional<_STL::locale> & =
<const boost::optional<_STL::locale> >
  (boost::optional<_STL::locale>)
 
2.
operator boost::optional<_STL::locale> & =
<_STL::locale>
  (const boost::optional<_STL::locale> &)

in function
boost::io::detail::stream_format_state<char,_STL::char_traits<char> >::
operator =
   (const
boost::io::detail::stream_format_state<char,_STL::char_traits<char> > &)

stream_format_state doesn't define an operator=, it's a generated one,
which then assigns a _STL::locale member.
So the problem seems to be one of the macro defines used by optional to
know if it can define several operator= is not set right for
borland-5.6.4.

-- 
Samuel

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