Closed alguryanow closed 2 months ago
Your issue seems not SystemC-related, but most likely a C++ issue (operator visibility when instantiating the template). Please post on a C++ forum for further discussion.
It is not a problem with SystemC, but rather understanding that sc_signal
See my GitHub for an example of how to do this.
You probably need more training in Modern C++ and SystemC to avoid this in the future.
Note: I teach C++ and SystemC for Doulos. Our graduates know this stuff. See Doulos for more information.
I want to store std::vector in sc_fifo. But by definining a variable of type
sc_fifo< std::vector<uint16_t> > fifo;
I get the following error:
But actually I have defined
operator<<
forstd::vector<uint16_t>
.Here is the full code of my test program:
If I comment lines
the compilation finished successfully, but when I uncommnent them then I get the error as provided above.
My OS is Ubuntu 22.04. Tested on SystemC v2.3.3 and v2.3.4