Must implement binary operator< to store my object in a std:queue?
From: Ken Overton (kov_at_nyc.rr.com)
Date: 02/28/05
- Next message: xeno: "Re: operator="
- Previous message: ma740988_at_pegasus.cc.ucf.edu: "design guidance - template approach"
- Next in thread: Thomas Matthews: "Re: Must implement binary operator< to store my object in a std:queue?"
- Reply: Thomas Matthews: "Re: Must implement binary operator< to store my object in a std:queue?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: xeno: "Re: operator="
- Previous message: ma740988_at_pegasus.cc.ucf.edu: "design guidance - template approach"
- Next in thread: Thomas Matthews: "Re: Must implement binary operator< to store my object in a std:queue?"
- Reply: Thomas Matthews: "Re: Must implement binary operator< to store my object in a std:queue?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]