[osmium-tool] 36/97: Use value instead of reference captures in lambda.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Tue Jul 21 20:15:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to tag v1.0.0
in repository osmium-tool.
commit 8cc540c68996a6cbabf8ca847aaf9cbe2d6ff391
Author: Jochen Topf <jochen at topf.org>
Date: Wed Aug 27 22:40:16 2014 +0200
Use value instead of reference captures in lambda.
This should allow the lambda to be copied around.
---
src/command_apply_changes.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/command_apply_changes.cpp b/src/command_apply_changes.cpp
index 97c1637..6d6e9b8 100644
--- a/src/command_apply_changes.cpp
+++ b/src/command_apply_changes.cpp
@@ -170,7 +170,7 @@ bool CommandApplyChanges::run() {
osmium::object_id_type id = 0;
bool keep_deleted = !m_remove_deleted;
- auto output_it = boost::make_function_output_iterator([&out, &id, keep_deleted](const osmium::OSMObject& obj) {
+ auto output_it = boost::make_function_output_iterator([out, id, keep_deleted](const osmium::OSMObject& obj) mutable {
if (obj.id() != id) {
if (keep_deleted || obj.visible()) {
*out = obj;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osmium-tool.git
More information about the Pkg-grass-devel
mailing list