mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-01-19 08:46:45 +01: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:
parent
fa2f2c67a7
commit
87b12c806a
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user