Skip to content

Commit 6146b9f

Browse files
Define the equality operator for qvi_hwloc_bitmap_s. (#252)
Signed-off-by: Samuel K. Gutierrez <[email protected]>
1 parent 3d6ea2a commit 6146b9f

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

src/qvi-hwloc.h

+7
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,13 @@ struct qvi_hwloc_bitmap_s {
451451
{
452452
qvi_hwloc_bitmap_delete(&m_data);
453453
}
454+
/** Equality operator. */
455+
bool
456+
operator==(
457+
const qvi_hwloc_bitmap_s &x
458+
) const {
459+
return hwloc_bitmap_compare(cdata(), x.cdata()) == 0;
460+
}
454461
/** Assignment operator. */
455462
void
456463
operator=(const qvi_hwloc_bitmap_s &src)

src/qvi-hwpool.cc

-11
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,6 @@
4747
#include "qvi-utils.h"
4848

4949
#if 0
50-
/**
51-
* Returns whether two cpusets are equal.
52-
*/
53-
static bool
54-
cpusets_equal(
55-
hwloc_const_cpuset_t a,
56-
hwloc_const_cpuset_t b
57-
) {
58-
return hwloc_bitmap_compare(a, b) == 0;
59-
}
60-
6150
/**
6251
*
6352
*/

0 commit comments

Comments
 (0)