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:
Jim Hague 2015-11-01 16:08:56 +00:00
parent fa2f2c67a7
commit 87b12c806a

View File

@ -144,12 +144,12 @@ namespace zmq
{
return poll(items.data(), items.size(), timeout.count() );
}
#endif
inline int poll(std::vector<zmq_pollitem_t> const& items, long timeout_ = -1)
{
return poll(items.data(), items.size(), timeout_);
}
#endif