Must implement binary operator< to store my object in a std:queue?

From: Ken Overton (kov_at_nyc.rr.com)
Date: 02/28/05


Date: Mon, 28 Feb 2005 03:39:37 GMT

CBuffer is my class, here's the compile error I get.

error C2678: binary '<' : no operator defined which takes a left-hand
operand of type 'const class CBuffer' (or there is no acceptable conversion)
while compiling class-template member function 'bool __thiscall
std::less<class CBuffer>::operator ()(const class CBuffer &,const class
CBuffer &) const'

I get this error when compiling 2 different classes; the only thing I could
find in common between them was that they both havestd::queue<CBuffer>
members:

TIA,

kov