| 106 | } |
| 107 | |
| 108 | bool DynamicSample::compare(const Sample& other) const |
| 109 | { |
| 110 | const DynamicSample* const other_same_kind = dynamic_cast<const DynamicSample*>(&other); |
| 111 | OPENDDS_ASSERT(other_same_kind); |
| 112 | bool is_less_than = false; |
| 113 | DDS::ReturnCode_t rc = key_less_than(is_less_than, data_, other_same_kind->data_); |
| 114 | if (rc != DDS::RETCODE_OK) { |
| 115 | if (log_level >= LogLevel::Warning) { |
| 116 | ACE_ERROR((LM_WARNING, "(%P|%t) WARNING: DynamicSample::compare: " |
| 117 | "key_less_than returned %C\n", retcode_to_string(rc))); |
| 118 | } |
| 119 | } |
| 120 | return is_less_than; |
| 121 | } |
| 122 | |
| 123 | } |
| 124 | } |
no test coverage detected