[osmium-tool] 71/97: Workaround for MSVC bug.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Tue Jul 21 20:15:36 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 9230141bbf75971d288a209dbc299ba8b13280e3
Author: Jochen Topf <jochen at topf.org>
Date:   Thu Jan 29 17:01:00 2015 +0100

    Workaround for MSVC bug.
    
    C2797: "List initialization inside member initializer list or non-static data
    member initializer is not implemented"
    https://msdn.microsoft.com/en-us/library/dn793970.aspx
---
 src/osmc.hpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/osmc.hpp b/src/osmc.hpp
index 307e31e..1a55f63 100644
--- a/src/osmc.hpp
+++ b/src/osmc.hpp
@@ -38,12 +38,16 @@ class Command {
 
 protected:
 
-    std::string m_generator {"osmium/" OSMIUM_VERSION};
+    std::string m_generator;
     bool m_debug {false};
     osmium::util::VerboseOutput m_vout {false};
 
 public:
 
+    Command() :
+        m_generator("osmium/" OSMIUM_VERSION) {
+    }
+
     virtual ~Command() {
     }
 

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