U
uartem
Hello, this is my problem:
I have a map:
typedef map<string, bfdb_record> BFDB;
where:
typedef struct
{
size_t seq_no;
StdBloomFilter bf;
} bfdb_record;
where:
class StdBloomFilter : public BloomFilter
{
private:
vector<bool> __filter;
size_t __size;
public:
StdBloomFilter():__filter(0),__size(0){};
StdBloomFilter(size_t _size): __filter(_size), __size(_size) {};
StdBloomFilter(const StdBloomFilter& _source);
virtual ~StdBloomFilter(){};
operator CountingBloomFilter();
StdBloomFilter& operator=(const StdBloomFilter&);
void set(size_t _pos);
bool test(size_t _pos) const;
void clear();
size_t size() const;
void merge(const StdBloomFilter& _source);
string to_string();
};
now I want to insert structure into my map:
__db.insert(make_pair(_id,_info));
or
__db[_id] = _info;
or
__db.insert(BFDB::value_type(_id, _info));
I get a runtime error:
8 [main] LE 2560 _cygtls::handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
985 [main] LE 2560 open_stackdumpfile: Dumping stack trace to
LE.exe.stackdump
Is something in StdBloomFilter missing. If I change bf to int type in
the bfdb_record struct then everything works, but that is not what I
need!!!
Please help
I have a map:
typedef map<string, bfdb_record> BFDB;
where:
typedef struct
{
size_t seq_no;
StdBloomFilter bf;
} bfdb_record;
where:
class StdBloomFilter : public BloomFilter
{
private:
vector<bool> __filter;
size_t __size;
public:
StdBloomFilter():__filter(0),__size(0){};
StdBloomFilter(size_t _size): __filter(_size), __size(_size) {};
StdBloomFilter(const StdBloomFilter& _source);
virtual ~StdBloomFilter(){};
operator CountingBloomFilter();
StdBloomFilter& operator=(const StdBloomFilter&);
void set(size_t _pos);
bool test(size_t _pos) const;
void clear();
size_t size() const;
void merge(const StdBloomFilter& _source);
string to_string();
};
now I want to insert structure into my map:
__db.insert(make_pair(_id,_info));
or
__db[_id] = _info;
or
__db.insert(BFDB::value_type(_id, _info));
I get a runtime error:
8 [main] LE 2560 _cygtls::handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
985 [main] LE 2560 open_stackdumpfile: Dumping stack trace to
LE.exe.stackdump
Is something in StdBloomFilter missing. If I change bf to int type in
the bfdb_record struct then everything works, but that is not what I
need!!!
Please help