If you look at "/usr/include/c++/4.0.2/bits/" for the file "stl_queue.h" in line 139, the "c" variable is defined there. And the commentary above the declaration is the following : " /** * 'c' is the underlying container. Maintainers wondering why * this isn't uglified as per style guidelines should note that * this name is specified in the standard, [23.2.3.1]. (Why? * Presumably for the same reason that it's protected instead * of private: to allow derivation. But none of the other * containers allow for derivation. Odd.) */ _Sequence c; " Thats why is not need to declare the variable "c", it should be there for derivation from the queue class. But maybe you have right and i have a mistake that gcc 3.x ignores (but its not likely). Any help is well received. Em Friday 23 December 2005 08:23, o Philipp Thomas escreveu:
On Thu, 22 Dec 2005 17:04:35 +0000, Jorge Almeida wrote:
For the stl template the code is in attachment. This code is inserted in a bigger project.
template <class T> void CMiceQueue<T>::Reserve(size_t un_size) { c.reserve(un_size); ^^ }
template <class T> void CMiceQueue<T>::Clear(void) { c.clear(); ^^ }
template <class T> bool CMiceQueue<T>::Empty(void) const { return c.empty();^ ^^ }
template <class T> size_t CMiceQueue<T>::Size(void) const { return c.size(); ^^ }
Four times 'c' is referenced but at least in this header there is no definition of it.
Philipp
-- Jorge Almeida j-almeida@criticalsoftware.com DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise disseminate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard copy version if verification is required. Critical Software.