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 "../LoadingSystem/Loader.hpp"
#include "Cache.hpp"
using namespace loader;
namespace CacheSystem{
template<class T, class K, class Loader>
class CacheFifo
ublic 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 ℑ
{...}
...};
};//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 "..." are either comments, either code that was in comment and that has no real incidence on compiling.
thank you
LDdA
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 "../LoadingSystem/Loader.hpp"
#include "Cache.hpp"
using namespace loader;
namespace CacheSystem{
template<class T, class K, class Loader>
class CacheFifo
private:
...
hash_map<const K, T, hash<const K> > _image_set;
---> queue<const K*> _freeable;<--- Line 47
bool addImageObject(const K &key, const Image ℑ
{...}
...};
};//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 "..." are either comments, either code that was in comment and that has no real incidence on compiling.
thank you
LDdA