Skip to content

Commit acf0334

Browse files
committed
Remove unnecessary use of BOOST_WORKAROUND.
1 parent 8bb717e commit acf0334

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

asio/include/asio/buffers_iterator.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <cstddef>
2020
#include <iterator>
2121
#include <boost/assert.hpp>
22-
#include <boost/detail/workaround.hpp>
2322
#include <boost/type_traits/is_convertible.hpp>
2423
#include <boost/type_traits/add_const.hpp>
2524
#include "asio/buffer.hpp"
@@ -126,9 +125,9 @@ class buffers_iterator
126125

127126
/// Construct an iterator representing the beginning of the buffers' data.
128127
static buffers_iterator begin(const BufferSequence& buffers)
129-
#if BOOST_WORKAROUND(__GNUC__, == 4) && BOOST_WORKAROUND(__GNUC_MINOR__, == 3)
128+
#if defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ == 3)
130129
__attribute__ ((noinline))
131-
#endif
130+
#endif // defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ == 3)
132131
{
133132
buffers_iterator new_iter;
134133
new_iter.begin_ = buffers.begin();
@@ -146,9 +145,9 @@ class buffers_iterator
146145

147146
/// Construct an iterator representing the end of the buffers' data.
148147
static buffers_iterator end(const BufferSequence& buffers)
149-
#if BOOST_WORKAROUND(__GNUC__, == 4) && BOOST_WORKAROUND(__GNUC_MINOR__, == 3)
148+
#if defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ == 3)
150149
__attribute__ ((noinline))
151-
#endif
150+
#endif // defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ == 3)
152151
{
153152
buffers_iterator new_iter;
154153
new_iter.begin_ = buffers.begin();

0 commit comments

Comments
 (0)