simplify some using statements to pull in the address types

This commit is contained in:
arvidn 2018-05-19 08:54:34 +02:00 committed by Arvid Norberg
parent 9a48ef761e
commit a137bbfdd4
1 changed files with 6 additions and 6 deletions

View File

@ -49,16 +49,16 @@ POSSIBILITY OF SUCH DAMAGE.
namespace libtorrent {
#if defined TORRENT_BUILD_SIMULATOR
using address = sim::asio::ip::address;
using address_v4 = sim::asio::ip::address_v4;
using sim::asio::ip::address;
using sim::asio::ip::address_v4;
#if TORRENT_USE_IPV6
using address_v6 = sim::asio::ip::address_v6;
using sim::asio::ip::address_v6;
#endif
#else
using address = boost::asio::ip::address;
using address_v4 = boost::asio::ip::address_v4;
using boost::asio::ip::address;
using boost::asio::ip::address_v4;
#if TORRENT_USE_IPV6
using address_v6 = boost::asio::ip::address_v6;
using boost::asio::ip::address_v6;
#endif
#endif // SIMULATOR