Invalid method prototype in DataState.hpp

2 posts / 0 new
Last post
mpichini's picture
Offline
Last seen: 1 year 5 months ago
Joined: 09/16/2015
Posts: 27
Invalid method prototype in DataState.hpp

Hi there,

including the include/ndds/hpp/dds/sub/status/DataState.hpp header I got an error on line 404 because the method definition is invalid.

In fact the method is defined as:

const void sample_state(const SampleState& sample_state)

but the const keyword is misplaced. 

I'm using RTI_Connext_DDS 5.2.0 with binding for C++ 2011 on ubuntu 12.04 with g++ 4.6.3.

best regards

Massimo

Offline
Last seen: 2 months 2 weeks ago
Joined: 04/02/2013
Posts: 196

Hi Massimo,

Thanks for reporting the problem. This is indeed an error (likely a typo in the OMG standard header), but it shouldn't have caused a compilation error. Are you using any additional flags to increase the warning level and to treat warnings as errors?

In any case, this will be fixed in the next release.

Alex