Original Post
[qutoe]
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(303): error C2529: ''_Right'' : reference to reference is illegal
I thought they were going to change it so that a reference to a reference yields the same reference. Otherwise, you can''t use any binders (and probably not most other adaptors) with functors that take references!
Socket::tcpPacket packet;
//...
std::for_each(this->vConnectedSockets.begin(),
this->vConnectedSockets.end(),
std::bind2nd(std::mem_fun(&tyRecvSocket::Send), packet));
Is my only STL friendly option to use pointers, and never use references?
Magmai Kai Holmlor
"Oh, like you''ve never written buggy code" - Lee