Ticket #1304: filesystem071007.diff

File filesystem071007.diff, 2.1 KB (added by Nicola Musatti, 15 years ago)
  • config.hpp

     
    2323// http://www.boost.org/more/separate_compilation.html
    2424
    2525#include <boost/config.hpp>
     26#include <boost/detail/workaround.hpp>
    2627
    2728//  determine platform  ------------------------------------------------------//
    2829
     
    5960
    6061//  narrow support only for badly broken compilers or libraries  -------------//
    6162
    62 # if defined(BOOST_NO_STD_WSTRING) || defined(BOOST_NO_SFINAE) || defined(BOOST_NO_STD_LOCALE)
     63# if defined(BOOST_NO_STD_WSTRING) || defined(BOOST_NO_SFINAE) || defined(BOOST_NO_STD_LOCALE) || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x592))
    6364#   define BOOST_FILESYSTEM_NARROW_ONLY
    6465# endif
    6566
  • path.hpp

     
    649649      const char * what() const throw()
    650650      {
    651651        if ( !m_imp_ptr.get() )
    652           return system_error::what();
    653         return detail::what( system_error::what(), m_imp_ptr->m_path1,
     652          return system::system_error::what();
     653        return detail::what( system::system_error::what(), m_imp_ptr->m_path1,
    654654          m_imp_ptr->m_path2, m_imp_ptr->m_what ); 
    655655      }
    656656
     
    13861386    template<class Path>
    13871387    basic_filesystem_error<Path>::basic_filesystem_error(
    13881388      const std::string & what, system::error_code ec )
    1389       : system_error(ec, what)
     1389      : system::system_error(ec, what)
    13901390    {
    13911391      try
    13921392      {
     
    13991399    basic_filesystem_error<Path>::basic_filesystem_error(
    14001400      const std::string & what, const path_type & path1,
    14011401      system::error_code ec )
    1402       : system_error(ec, what)
     1402      : system::system_error(ec, what)
    14031403    {
    14041404      try
    14051405      {
     
    14131413    basic_filesystem_error<Path>::basic_filesystem_error(
    14141414      const std::string & what, const path_type & path1,
    14151415      const path_type & path2, system::error_code ec )
    1416       : system_error(ec, what)
     1416      : system::system_error(ec, what)
    14171417    {
    14181418      try
    14191419      {