Skip to content

Instantly share code, notes, and snippets.

@neheb
Created January 8, 2019 02:22
Show Gist options
  • Select an option

  • Save neheb/5e953df730492f3f79267d6e1c2eb2d3 to your computer and use it in GitHub Desktop.

Select an option

Save neheb/5e953df730492f3f79267d6e1c2eb2d3 to your computer and use it in GitHub Desktop.
diff --git a/src/storage/MemoryBundleStorage.cpp b/src/storage/MemoryBundleStorage.cpp
index bc6029c..5023778 100644
--- a/src/storage/MemoryBundleStorage.cpp
+++ b/src/storage/MemoryBundleStorage.cpp
@@ -217,7 +217,7 @@ namespace dtn
ibrcommon::MutexLock l(_bundleslock);
// search for the bundle in the bundle list
- const bundle_list::const_iterator iter = find(_bundles.begin(), _bundles.end(), id);
+ const bundle_list::iterator iter = find(_bundles.begin(), _bundles.end(), id);
// if no bundle was found throw an exception
if (iter == _bundles.end()) throw NoBundleFoundException();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment