blob: 490762497b8ff63f2498e9d9abcc6687edeafb8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Workarounds to fix C++11 bugs or non-implemented features of MS Visual C++.
// These workarounds are to be done only for older versions of MSVC (and probably
// to be removed after new compiler is widely used).
#pragma once
// alignof
#if defined(_MSC_VER) && (_MSC_VER <= 1800)
#define ALIGNOF __alignof
#else
#define ALIGNOF alignof
#endif
// constexpr
#if defined(_MSC_VER) && (_MSC_VER <= 1800)
#define CONSTEXPR_VALUE const
#else
#define CONSTEXPR_VALUE constexpr
#endif
// noexcept
#if defined(_MSC_VER) && (_MSC_VER <= 1800)
#define NOEXCEPT_MODIFIER
#else
#define NOEXCEPT_MODIFIER noexcept
#endif
|