On Mon, 16 Oct 2017, Peter Dimov via Boost wrote:
Marc Glisse wrote:
It would be great to avoid talking about the 2 macros at the same time, since they do not do the same thing. BOOST_SYSTEM_NO_DEPRECATED mostly removes some old synonyms, which otherwise cause
#include
int main(){} to require linking with boost_system. This happens to a lot of users, where the file is included indirectly through other boost packages.
Perhaps someone could prepare a pull request that turns `#ifndef BOOST_SYSTEM_NO_DEPRECATED` into `#ifdef BOOST_SYSTEM_ENABLE_DEPRECATED`?
Well, Niall seemed to imply that this would be wrong, so it needs to be clarified first. Otherwise: #ifndef BOOST_SYSTEM_ENABLE_DEPRECATED #define BOOST_SYSTEM_NO_DEPRECATED #endif + the doc change. There is a file in chrono that uses BOOST_SYSTEM_NO_DEPRECATED, which restricts the ways to do it if we want to avoid a second pull request in a different package. -- Marc Glisse