The documentation displays the following signature for std::deque::swap :
void swap ( list<T,Allocator>& dqe );
I guess it's a typo, and should be :
void swap ( deque<T,Allocator>& dqe );
Heh, a bit too much of copy/paste I guess.
Someone is going to correct it ... ?