Ticket #2820: TestIoControlCommand.cpp

File TestIoControlCommand.cpp, 294 bytes (added by Kevin Arunski <kevin.arunski@…>, 14 years ago)

Test program, fails compilation with 'struct MyIoControl has no member get'

Line 
1#include <boost/asio.hpp>
2
3struct MyIoControl
4{
5 // IoControlCommand expressions
6 int name();
7 void * data();
8};
9
10int main(int argc, char * argv[])
11{
12 boost::asio::io_service service;
13 boost::asio::ip::udp::socket sock(service);
14
15 MyIoControl ioCtlOp;
16 sock.io_control(ioCtlOp);
17 return 0;
18}