[osmium-tool] 43/44: Another MSVC workaround.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Tue Jul 21 20:15:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to tag v1.1.0
in repository osmium-tool.

commit f4a6fba9333a2af6bc9c9fb32b4c037433d574eb
Author: Jochen Topf <jochen at topf.org>
Date:   Sat Jul 4 08:49:49 2015 +0200

    Another MSVC workaround.
---
 src/command_renumber.hpp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/command_renumber.hpp b/src/command_renumber.hpp
index 365835d..4128836 100644
--- a/src/command_renumber.hpp
+++ b/src/command_renumber.hpp
@@ -40,11 +40,16 @@ class CommandRenumber : public Command, with_single_osm_input, with_osm_output {
     std::string m_index_directory;
 
     remap_index_type m_id_index[3];
-    osmium::object_id_type m_last_id[3] {0, 0, 0};
+    osmium::object_id_type m_last_id[3];
 
 public:
 
-    CommandRenumber() = default;
+    CommandRenumber() {
+        // workaround for MSVC
+        m_last_id[0] = 0;
+        m_last_id[1] = 0;
+        m_last_id[2] = 0;
+    }
 
     bool setup(const std::vector<std::string>& arguments) override final;
 

-- 
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