mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-10-19 12:42:32 +02:00
Extend C++11 guard to cover remaining use of std::vector data().
Now compiles without error with a pre-C++11 compiler (g++-3.3). Fixes #53 Please enter the commit message for your changes. Lines starting
This commit is contained in:
2
zmq.hpp
2
zmq.hpp
@@ -144,12 +144,12 @@ namespace zmq
|
|||||||
{
|
{
|
||||||
return poll(items.data(), items.size(), timeout.count() );
|
return poll(items.data(), items.size(), timeout.count() );
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
inline int poll(std::vector<zmq_pollitem_t> const& items, long timeout_ = -1)
|
inline int poll(std::vector<zmq_pollitem_t> const& items, long timeout_ = -1)
|
||||||
{
|
{
|
||||||
return poll(items.data(), items.size(), timeout_);
|
return poll(items.data(), items.size(), timeout_);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user