[Boost-bugs] [Boost C++ Libraries] #12502: boost/asio/error.hpp: fix warnings about unused static variables

Subject: [Boost-bugs] [Boost C++ Libraries] #12502: boost/asio/error.hpp: fix warnings about unused static variables
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-06 13:21:11


#12502: boost/asio/error.hpp: fix warnings about unused static variables
------------------------------+----------------------------
 Reporter: bachmann@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------------
 Please add the following pre-processor define (or similar) around the
 static variables in "boost/asio/error.hpp" such that the warnings about
 unused variables can be switched off in client code.

 Analog to boost/system/error_code.hpp:

 #ifndef BOOST_SYSTEM_NO_DEPRECATED
 static const boost::system::error_category& system_category
   = boost::asio::error::get_system_category();
 static const boost::system::error_category& netdb_category
   = boost::asio::error::get_netdb_category();
 static const boost::system::error_category& addrinfo_category
   = boost::asio::error::get_addrinfo_category();
 static const boost::system::error_category& misc_category
   = boost::asio::error::get_misc_category();
 #endif

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12502>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC