Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorArtyom Polkovnikov <artyom.polkovnikov@gmail.com>2014-12-30 20:27:06 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:35:55 +0300
commitae0f11125a06d163a21f621e15f12102c544a683 (patch)
treeb42c545475b05c41c7472f91da27621d9437bf1d /std
parentd6e005c1fb3c6b369482aaadb9aea78982869c7c (diff)
[std] Define and use CONSTEXPR_VALUE macro to make code compilable under MSVC 2013.
Diffstat (limited to 'std')
-rw-r--r--std/constexpr.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/std/constexpr.hpp b/std/constexpr.hpp
new file mode 100644
index 0000000000..716eba0ca0
--- /dev/null
+++ b/std/constexpr.hpp
@@ -0,0 +1,7 @@
+#pragma once
+
+#if defined(_MSC_VER) && (_MSC_VER <= 1800)
+ #define CONSTEXPR_VALUE const
+#else
+ #define CONSTEXPR_VALUE constexpr
+#endif