Hello, Using Boost 1.62, I am seeing the following warning when I build my project. warning : Boost.Coroutine is now deprecated. Please switch to Boost.Coroutine2. To disable this warning message, define BOOST_COROUTINE_NO_DEPRECATION_WARNING. I haven't found any documentation on what exactly this means or how to 'switch'. Can someone please point me to some docs or explain what 'switching' entails? Thanks, -M
2016-10-18 17:54 GMT+02:00 Miguel Portilla
Hello,
Using Boost 1.62, I am seeing the following warning when I build my project.
warning : Boost.Coroutine is now deprecated. Please switch to Boost.Coroutine2. To disable this warning message, define BOOST_COROUTINE_NO_DEPRECATION_WARNING.
I haven't found any documentation on what exactly this means or how to 'switch'. Can someone please point me to some docs or explain what 'switching' entails?
Thanks, -M
Apply BOOST_COROUTINES_NO_DEPRECATION_WARNING (note the additional 'S' at the end of 'COROUTINE' - the warning statement in the code has a typo) in order to suppress the warning or you use boost.coroutine2 (requires C++11 support) instead of boost.coroutine in your project.
Thanks for the response, Oliver. I don't want to suppress the warning but
rather address the problem. I believe in my case the problem may lie in
ASIO's use of coroutines. Is there a roadmap for ASIO updating to
boost.corouitne2?
On Tue, Oct 18, 2016 at 2:18 PM, Oliver Kowalke
2016-10-18 17:54 GMT+02:00 Miguel Portilla
: Hello,
Using Boost 1.62, I am seeing the following warning when I build my project.
warning : Boost.Coroutine is now deprecated. Please switch to Boost.Coroutine2. To disable this warning message, define BOOST_COROUTINE_NO_DEPRECATION_WARNING.
I haven't found any documentation on what exactly this means or how to 'switch'. Can someone please point me to some docs or explain what 'switching' entails?
Thanks, -M
Apply BOOST_COROUTINES_NO_DEPRECATION_WARNING (note the additional 'S' at the end of 'COROUTINE' - the warning statement in the code has a typo) in order to suppress the warning or you use boost.coroutine2 (requires C++11 support) instead of boost.coroutine in your project.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
2016-10-18 21:12 GMT+02:00 Miguel Portilla
Thanks for the response, Oliver. I don't want to suppress the warning but rather address the problem. I believe in my case the problem may lie in ASIO's use of coroutines. Is there a roadmap for ASIO updating to boost.corouitne2?
I'm not the maintainer of boost.asio, so I don't know if an upgrade is planed - you might ask Christopher Kohlhoff.
participants (2)
-
Miguel Portilla
-
Oliver Kowalke