Skip to content

Commit

Permalink
Refs 10497. Fix build error on non-windows platforms.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany committed Feb 17, 2021
1 parent 7f413fb commit cf8ba15
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/blackbox/api/dds-pim/PubSubParticipant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
template<class TypeSupport>
class PubSubParticipant
{
public:

typedef TypeSupport type_support;
typedef typename type_support::type type;

private:

class PubListener : public eprosima::fastdds::dds::DataWriterListener
{
friend class PubSubParticipant;
Expand Down Expand Up @@ -120,7 +127,7 @@ class PubSubParticipant
void on_data_available(
eprosima::fastdds::dds::DataReader* reader) override
{
TypeSupport::type data;
type data;
eprosima::fastdds::dds::SampleInfo info;

while (ReturnCode_t::RETCODE_OK == reader->take_next_sample(&data, &info))
Expand All @@ -139,9 +146,6 @@ class PubSubParticipant

public:

typedef TypeSupport type_support;
typedef typename type_support::type type;

PubSubParticipant(
unsigned int num_publishers,
unsigned int num_subscribers,
Expand Down

0 comments on commit cf8ba15

Please sign in to comment.