Jump to content

Can we use vector include simple_initiator_socket?


Recommended Posts

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...