[muscle] VS: queue undeclared identifier - util/Queue.h

  • From: "David Svanberg" <ds@xxxxxxxxxxx>
  • To: "muscle mailing list" <muscle@xxxxxxxxxxxxx>
  • Date: Wed, 20 Aug 2003 11:24:48 +0200

Maybe the queue change to _queue isn't the answer - but something is wrong


-----Opprinnelig melding-----
Fra: muscle-bounce@xxxxxxxxxxxxx [mailto:muscle-bounce@xxxxxxxxxxxxx]På;
vegne av David Svanberg
Sendt: 20. august 2003 10:52
Til: muscle mailing list
Emne: [muscle] queue undeclared identifier - util/Queue.h

Lines 501-509 in the util/Queue.h (MUSCLE 2.42) file follows:

template <class ItemType>
AddHead(const ItemType * items, uint32 numItems)
   if (EnsureSize(queue.GetNumItems()+numItems) != B_NO_ERROR) return
   for (int i=((int)numItems)-1; i>=0; i--) if (AddHead(items[i]) ==
B_ERROR) return B_ERROR;
   return B_NO_ERROR;

I think the line "if (EnsureSize(queue.GetNumItems()+numItems) !=
B_NO_ERROR) return B_ERROR;" should be written "if
(EnsureSize(_queue.GetNumItems()+numItems) != B_NO_ERROR) return B_ERROR;".
What do you guys think?

David Svanberg
Software Engineer  Poseidon Simulation AS
Naeringsparken, P.O.Box 89, N-8376 Leknes, Norway
Tel:+47 760 54 330  Fax:+47 760 82 006
E-mail:ds@xxxxxxxxxxx  www.poseidon.no

POSEIDON - your maritime training partner

Other related posts:

  • » [muscle] VS: queue undeclared identifier - util/Queue.h