Allen yang Posted October 19, 2023 Report Share Posted October 19, 2023 I have try to use vector to create many socket. But it didn't work. Here's my code. ``` std::vecotr<tlm_utils::simple_initiator_socket<module>> vec; vec.emplace_back("ring"); ``` It report error messga like this. ``` result type must be constructible from value type of input range ``` Need your help. Thanks! Quote Link to comment Share on other sites More sharing options...
David Black Posted October 19, 2023 Report Share Posted October 19, 2023 Use sc_vector instead. See IEEE-1666 for details. Quote Link to comment Share on other sites More sharing options...
Allen yang Posted October 20, 2023 Author Report Share Posted October 20, 2023 @David Black Thanks! I will try to use today. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.