Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2006-01-11 07:20:06


> Assigned to: Beman Dawes (beman_dawes)
> Summary: crach build from borland 5.6.4
> Error file boost\boost\filesystem\path.hpp in line 589
>

(Latest CVS version.)

BCB decides Path::string_type is char (unsigned char, signed char)
and fails to find its string_type and value_type.

Either the code block can be commented out (like it is for VC6, VC7.0) with

#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))

(tested, works)

or specialisations for char, signed char, unsigned char and wchar_t
can be created for BCB instead of one generic one (tested, also works).

Example:

    template< class Path >
    std::basic_ostream<char, std::char_traits<char> > &

    operator<< (std::basic_ostream< char, std::char_traits<char> >& os,
const Path & ph)
    {
      os << ph.string();
      return os;
    }
    // other specialisations

/Pavel


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