Protect calls from macros

fix #918
This commit is contained in:
Vinnie Falco
2017-12-04 12:14:11 -08:00
parent eb412ee958
commit eb0cc97e1a
15 changed files with 40 additions and 39 deletions
+2 -2
View File
@@ -353,7 +353,7 @@ public:
allocator_type
get_allocator() const noexcept
{
return boost::asio::get_associated_allocator(handler_);
return (boost::asio::get_associated_allocator)(handler_);
}
// Executor hook. This is Asio's system for customizing the
@@ -367,7 +367,7 @@ public:
executor_type get_executor() const noexcept
{
return boost::asio::get_associated_executor(handler_, stream_.get_executor());
return (boost::asio::get_associated_executor)(handler_, stream_.get_executor());
}
// Determines if the next asynchronous operation represents a
+2 -2
View File
@@ -154,7 +154,7 @@ public:
allocator_type
get_allocator() const noexcept
{
return boost::asio::get_associated_allocator(p_.handler());
return (boost::asio::get_associated_allocator)(p_.handler());
}
// Executor hook. This is Asio's system for customizing the
@@ -168,7 +168,7 @@ public:
executor_type get_executor() const noexcept
{
return boost::asio::get_associated_executor(
return (boost::asio::get_associated_executor)(
p_.handler(), p_->stream.get_executor());
}