You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
714 B

  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. Alternative implementations of libstdcpp as uclibc++ use it in
  6. the algorithm implemenetations.
  7. ---
  8. ibrdtn/data/Bundle.h | 3 +++
  9. 1 file changed, 3 insertions(+)
  10. --- a/ibrdtn/data/Bundle.h
  11. +++ b/ibrdtn/data/Bundle.h
  12. @@ -69,6 +69,9 @@ namespace dtn
  13. bool operator==(const dtn::data::block_t &type) const {
  14. return (**this) == type;
  15. }
  16. + bool operator!=(const dtn::data::block_t &type) const {
  17. + return !((**this) == type);
  18. + }
  19. };
  20. typedef std::list<block_elem> block_list;