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
|
|
437 | 437 | } // unnamed namespace |
438 | 438 | |
439 | 439 | |
440 | | # ifndef BOOST_SYSTEM_NO_DEPRECATED |
| 440 | # ifdef BOOST_SYSTEM_DEPRECATED |
441 | 441 | BOOST_SYSTEM_DECL error_code throws; // "throw on error" special error_code; |
442 | 442 | // note that it doesn't matter if this |
443 | 443 | // isn't initialized before use since |
diff -ru boost.orig/boost/system/error_code.hpp boost/boost/system/error_code.hpp
old
|
new
|
|
139 | 139 | |
140 | 140 | } // namespace errc |
141 | 141 | |
142 | | # ifndef BOOST_SYSTEM_NO_DEPRECATED |
| 142 | # ifdef BOOST_SYSTEM_DEPRECATED |
143 | 143 | namespace posix = errc; |
144 | 144 | namespace posix_error = errc; |
145 | 145 | # endif |
… |
… |
|
214 | 214 | #endif |
215 | 215 | // deprecated synonyms --------------------------------------------------// |
216 | 216 | |
217 | | # ifndef BOOST_SYSTEM_NO_DEPRECATED |
| 217 | # ifdef BOOST_SYSTEM_DEPRECATED |
218 | 218 | inline const error_category & get_system_category() { return system_category(); } |
219 | 219 | inline const error_category & get_generic_category() { return generic_category(); } |
220 | 220 | inline const error_category & get_posix_category() { return generic_category(); } |
… |
… |
|
394 | 394 | }; |
395 | 395 | |
396 | 396 | // predefined error_code object used as "throw on error" tag |
397 | | # ifndef BOOST_SYSTEM_NO_DEPRECATED |
| 397 | # ifdef BOOST_SYSTEM_DEPRECATED |
398 | 398 | BOOST_SYSTEM_DECL extern error_code throws; |
399 | 399 | # endif |
400 | 400 | |
diff -ru boost.orig/boost/system/linux_error.hpp boost/boost/system/linux_error.hpp
old
|
new
|
|
89 | 89 | }; |
90 | 90 | } // namespace linux_error |
91 | 91 | |
92 | | # ifndef BOOST_SYSTEM_NO_DEPRECATED |
| 92 | # ifdef BOOST_SYSTEM_DEPRECATED |
93 | 93 | namespace Linux = linux_error; |
94 | 94 | # endif |
95 | 95 | |
diff -ru boost.orig/boost/system/windows_error.hpp boost/boost/system/windows_error.hpp
old
|
new
|
|
105 | 105 | |
106 | 106 | } // namespace windows |
107 | 107 | |
108 | | # ifndef BOOST_SYSTEM_NO_DEPRECATED |
| 108 | # ifdef BOOST_SYSTEM_DEPRECATED |
109 | 109 | namespace windows = windows_error; |
110 | 110 | # endif |
111 | 111 | |