for the following code I am getting error
receive_cmd.cpp:12:40: error: no match for 'operator==' in 'tmp_cmd == gold_rom[tmp_cmd.cmd::cmd_id]'
void tb::receive_cmds(){
cmd tmp_cmd;
cmd gold_rom[128];
wait(1, SC_NS);
cmd_error = false;
while(true){
tmp_cmd = tb_cmd_in->read();
if (tmp_cmd == gold_rom[tmp_cmd.cmd_id]) {
cout << sc_time_stamp() << " " << name();
cout << ": received correct result for: " << tmp_cmd << endl;
}
else {
cmd_error++;
cout << sc_time_stamp() << " " << name();
cout << ": ERROR command = "<< tmp_cmd
<< ", should be: "
<< gold_rom[tmp_cmd.cmd_id];
}
num_cmds --;
cmd_received.notify();
}
}