std::vector vs rti::vector and variable assignment

2 posts / 0 new
Last post
Offline
Last seen: 6 years 5 months ago
Joined: 09/17/2015
Posts: 53
std::vector vs rti::vector and variable assignment

Hello,

Why does rti::vectory only support a tiny subset of std::vector? Is there a smart workaround it?

And why can I not write SomeType.Member() = SomeStuff;? Is there a workaround for that?

This is something OpenSplice does better. :)

Best regards,

Andreas

Offline
Last seen: 6 days 3 hours ago
Joined: 04/02/2013
Posts: 195

Hi Andreas,

Some design restrictions made us choose a custom vector implementation to retain control over the memory layout of the IDL types. It does offer basic functionality compared to the std::vector, but you can easily convert from one to the other if you need to perform complicated operations or just use its iterators to call STL algorithms.

As far as the second comment, can you copy here the type you're having problems with? The syntax you're describing should work for all types except primitives, where you should use a setter.

Alex