[osmium-tool] 80/97: Revert "Use non-mutable lambda in the hope that this will work with MSVC."

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Tue Jul 21 20:15:37 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 146995dc765dd83de55832b1bb8d2ba97cec9628
Author: Jochen Topf <jochen at topf.org>
Date:   Fri Jan 30 10:28:35 2015 +0100

    Revert "Use non-mutable lambda in the hope that this will work with MSVC."
    
    This reverts commit d85b715abc578a3cfb2b9f851c032e4484997494.
    
    Going back to what we had before which seems to be better. See the
    discussion in #3. We still haven't found the regression though...
---
 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 d2bfd63..bea4710 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