fe535089a162fd7ca64e39768d1db07e70f2a5ce
[feed/packages.git] / libs / ibrdtn / patches / 010-Add-operator-to-Bundle-block_elem.patch
1 From 199c86591edc7e82b92903efecadc4f69ea63370 Mon Sep 17 00:00:00 2001
2 From: Johannes Morgenroth <jm@m-network.de>
3 Date: Tue, 1 Jan 2019 11:25:50 +0100
4 Subject: [PATCH] Add operator!=() to Bundle::block_elem
5
6 Alternative implementations of libstdcpp as uclibc++ use it in
7 the algorithm implemenetations.
8 ---
9 ibrdtn/data/Bundle.h | 3 +++
10 1 file changed, 3 insertions(+)
11
12 diff --git a/ibrdtn/data/Bundle.h b/ibrdtn/data/Bundle.h
13 index 036a2a6fb..9bbc066d7 100644
14 --- a/ibrdtn/data/Bundle.h
15 +++ b/ibrdtn/data/Bundle.h
16 @@ -69,6 +69,9 @@ namespace dtn
17 bool operator==(const dtn::data::block_t &type) const {
18 return (**this) == type;
19 }
20 + bool operator!=(const dtn::data::block_t &type) const {
21 + return !((**this) == type);
22 + }
23 };
24
25 typedef std::list<block_elem> block_list;