summaryrefslogtreecommitdiff
path: root/src/versionstr.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2018-06-07 17:26:49 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2018-06-07 17:26:49 +0200
commit93fe142f21e501a9ff12432d35fbf89b87135f9c (patch)
tree45b79d80073f429e7315ca1a2a8de61ed74d664d /src/versionstr.h
parentf9541d8b78bb59713eede3748a4e1bb5776ef87c (diff)
Actually remove throw in versionstr and replace C-array by std::array.
Diffstat (limited to 'src/versionstr.h')
-rw-r--r--src/versionstr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/versionstr.h b/src/versionstr.h
index 48eb40a..9fc2fcd 100644
--- a/src/versionstr.h
+++ b/src/versionstr.h
@@ -1,5 +1,4 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* vim: set et sw=2 ts=2: */
/***************************************************************************
* versionstr.h
*
@@ -27,6 +26,7 @@
*/
#pragma once
+#include <array>
#include <string>
// Workaround - major, minor and patch are defined as macros when using
@@ -108,5 +108,5 @@ public:
private:
void set(const std::string& v);
- size_t version[3];
+ std::array<size_t, 3> version = {0, 0, 0};
};