Changeset 10512 for trunk/FACT++


Ignore:
Timestamp:
05/02/11 19:06:17 (14 years ago)
Author:
tbretz
Message:
replace the address of the first element by the data() member function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Connection.cc

    r10373 r10512  
    183183
    184184    // AsyncWrite + Deadline
    185     AsyncWrite(ba::const_buffers_1(&fOutQueue.front()[0],fOutQueue.front().size())/*, &Connection::HandleSentData*/);
     185    AsyncWrite(ba::const_buffers_1(fOutQueue.front().data(), fOutQueue.front().size())/*, &Connection::HandleSentData*/);
    186186    AsyncWait(fOutTimeout, 5000, &Connection::HandleWriteTimeout);
    187187}
     
    210210
    211211    // AsyncWrite + Deadline
    212     AsyncWrite(ba::const_buffers_1(&fOutQueue.front()[0],fOutQueue.front().size())/*, &Connection::HandleSentData*/);
     212    AsyncWrite(ba::const_buffers_1(fOutQueue.front().data(), fOutQueue.front().size())/*, &Connection::HandleSentData*/);
    213213    AsyncWait(fOutTimeout, 5000, &Connection::HandleWriteTimeout);
    214214}
Note: See TracChangeset for help on using the changeset viewer.