Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help on template compiling

Status
Not open for further replies.

LDdA

Programmer
Apr 18, 2003
2
FR
Hello

I'd like to know why there's a syntax error in my code:

#include <string.h>
#include <hash_map.h>
//#include <queue.h>
#include &quot;../LoadingSystem/Loader.hpp&quot;
#include &quot;Cache.hpp&quot;

using namespace loader;

namespace CacheSystem{
template<class T, class K, class Loader>
class CacheFifo:public CacheSystem::Cache<T, K, Loader> {
private:
...
hash_map<const K, T, hash<const K> > _image_set;
---> queue<const K*> _freeable;<--- Line 47

bool addImageObject(const K &key, const Image &#8465;)
{...}
...};
};//namespace

I really don't understand why the compiler tells me this:
CacheSystem/CacheFifo.hpp:47: syntax error before `;'

And when I uncomment #include <queue.h>, it doesn't find queue.h.

I hate asking this kind of help in forums, but I'm with this error for a couple of hours. The &quot;...&quot; are either comments, either code that was in comment and that has no real incidence on compiling.

thank you

LDdA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top