Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#2820 closed Bugs (fixed)

ASIO IoControlCommand Type Requirement needs undocumented expression get()

Reported by: Kevin Arunski <kevin.arunski@…> Owned by: chris_kohlhoff
Milestone: Boost 1.39.0 Component: asio
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:

Description

I am attempting to create a type that conforms to IoControlCommand? to pass to the io_control member function in the socket classes.

The compilation fails due to a missing expression a.get(). It's not clear from the documentation what this expression should return.

I've encountered this on Linux and Mac OS X and various versions of g++ 4.x

Attachments (1)

TestIoControlCommand.cpp (294 bytes) - added by Kevin Arunski <kevin.arunski@…> 9 years ago.
Test program, fails compilation with 'struct MyIoControl? has no member get'

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by Kevin Arunski <kevin.arunski@…>

Attachment: TestIoControlCommand.cpp added

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

comment:1 Changed 9 years ago by chris_kohlhoff

Resolution: fixed
Status: newclosed

(In [52294]) Fix implementation of io_control() so that it adheres to the type requirements for IoControlCommand?. Fixes #2820.

comment:2 Changed 9 years ago by chris_kohlhoff

(In [52309]) Merged revisions 52288-52294 via svnmerge from https://svn.boost.org/svn/boost/trunk

........

r52288 | chris_kohlhoff | 2009-04-09 21:50:42 +1000 (Thu, 09 Apr 2009) | 2 lines

Prevent locales from affecting the formatting of endpoints. Fixes #2682.

........

r52289 | chris_kohlhoff | 2009-04-09 22:00:36 +1000 (Thu, 09 Apr 2009) | 3 lines

Correct documentation of read, read_at, write and write_at functions to match new CompletionCondition? concept. Fixes #2871.

........

r52290 | chris_kohlhoff | 2009-04-09 22:03:01 +1000 (Thu, 09 Apr 2009) | 2 lines

Fix some warnings that occur with MSVC at warning level 4. Fixes #2828.

........

r52291 | chris_kohlhoff | 2009-04-09 22:04:39 +1000 (Thu, 09 Apr 2009) | 3 lines

As a performance optimisation, add an explicit check for an empty vector of timer queues.

........

r52292 | chris_kohlhoff | 2009-04-09 22:09:16 +1000 (Thu, 09 Apr 2009) | 6 lines

Implement automatic resizing of the bucket array in the internal hash maps. This is to improve performance for very large numbers of asynchronous operations and also to reduce memory usage for very small numbers. A new macro BOOST_ASIO_HASH_MAP_BUCKETS may be used to tweak the sizes used for the bucket arrays.

........

r52293 | chris_kohlhoff | 2009-04-09 22:12:50 +1000 (Thu, 09 Apr 2009) | 3 lines

Prevent memory leaks when an async SSL operation's completion handler throws. Fixes #2910.

........

r52294 | chris_kohlhoff | 2009-04-09 22:16:02 +1000 (Thu, 09 Apr 2009) | 3 lines

Fix implementation of io_control() so that it adheres to the type requirements for IoControlCommand?. Fixes #2820.

........

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain chris_kohlhoff.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.