Skip to content

Commit 4fda055

Browse files
committed
Minor tweak to ebpps items to string to help the method work with non-char types
1 parent b39e41b commit 4fda055

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sampling/include/ebpps_sample_impl.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ string<A> ebpps_sample<T ,A>::to_string() const {
178178
uint32_t idx = 0;
179179
for (const T& item : data_)
180180
oss << "\t" << idx++ << ":\t" << item << std::endl;
181-
oss << " partial: " << (bool(partial_item_) ? (*partial_item_) : "NULL") << std::endl;
181+
oss << " partial: ";
182+
if (bool(partial_item_))
183+
oss << (*partial_item_) << std::endl;
184+
else
185+
oss << "NULL" << std::endl;
182186

183187
return oss.str();
184188
}

0 commit comments

Comments
 (0)