Ticket #11597: boost_1_59_0.system.no.depreacted.patch

File boost_1_59_0.system.no.depreacted.patch, 2.9 KB (added by anonymous, 7 years ago)
  • boost/system/detail/error_code.ipp

    Starting from 1.59.0 final release, there are undefined generic_category()
    errors in internal and external modules: [1].
    
    Instead of defining the -DBOOST_SYSTEM_NO_DEPRECATED in internal and external
    modules, patch the boost to not define the deprecated stuff per default.
    
    [1] http://paste.openstack.org/show/430509
    
    diff -ru boost.orig/boost/system/detail/error_code.ipp boost/boost/system/detail/error_code.ipp
    old new  
    437437} // unnamed namespace
    438438
    439439
    440 # ifndef BOOST_SYSTEM_NO_DEPRECATED
     440# ifdef BOOST_SYSTEM_DEPRECATED
    441441    BOOST_SYSTEM_DECL error_code throws; // "throw on error" special error_code;
    442442                                         //  note that it doesn't matter if this
    443443                                         //  isn't initialized before use since
  • boost/system/error_code.hpp

    diff -ru boost.orig/boost/system/error_code.hpp boost/boost/system/error_code.hpp
    old new  
    139139
    140140    } // namespace errc
    141141
    142 # ifndef BOOST_SYSTEM_NO_DEPRECATED
     142# ifdef BOOST_SYSTEM_DEPRECATED
    143143    namespace posix = errc;
    144144    namespace posix_error = errc;
    145145# endif
     
    214214#endif
    215215    //  deprecated synonyms --------------------------------------------------//
    216216
    217 # ifndef BOOST_SYSTEM_NO_DEPRECATED
     217# ifdef BOOST_SYSTEM_DEPRECATED
    218218    inline const error_category &  get_system_category() { return system_category(); }
    219219    inline const error_category &  get_generic_category() { return generic_category(); }
    220220    inline const error_category &  get_posix_category() { return generic_category(); }
     
    394394    };
    395395
    396396    //  predefined error_code object used as "throw on error" tag
    397 # ifndef BOOST_SYSTEM_NO_DEPRECATED
     397# ifdef BOOST_SYSTEM_DEPRECATED
    398398    BOOST_SYSTEM_DECL extern error_code throws;
    399399# endif
    400400
  • boost/system/linux_error.hpp

    diff -ru boost.orig/boost/system/linux_error.hpp boost/boost/system/linux_error.hpp
    old new  
    8989      };
    9090    }  // namespace linux_error
    9191
    92 # ifndef BOOST_SYSTEM_NO_DEPRECATED
     92# ifdef BOOST_SYSTEM_DEPRECATED
    9393    namespace Linux = linux_error;
    9494# endif
    9595
  • boost/system/windows_error.hpp

    diff -ru boost.orig/boost/system/windows_error.hpp boost/boost/system/windows_error.hpp
    old new  
    105105
    106106    }  // namespace windows
    107107
    108 # ifndef BOOST_SYSTEM_NO_DEPRECATED
     108# ifdef BOOST_SYSTEM_DEPRECATED
    109109    namespace windows = windows_error;
    110110# endif
    111111