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
diff options
context:
space:
mode:
authorArtyom Polkovnikov <artyom.polkovnikov@gmail.com>2014-12-30 20:29:34 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:35:55 +0300
commitbc8a38a402e5c0a2d2a03804a68f097a04804582 (patch)
tree7e2e4700b47ed4a188208f0e9c2ebfb7878d9f3c /3party/osrm
parentae0f11125a06d163a21f621e15f12102c544a683 (diff)
[std] Create ALIGNOF macro to support MSVC <= 2013.
Diffstat (limited to '3party/osrm')
-rw-r--r--3party/osrm/osrm-backend/ThirdParty/variant/variant.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/3party/osrm/osrm-backend/ThirdParty/variant/variant.hpp b/3party/osrm/osrm-backend/ThirdParty/variant/variant.hpp
index d919ad2c77..7d0c107a73 100644
--- a/3party/osrm/osrm-backend/ThirdParty/variant/variant.hpp
+++ b/3party/osrm/osrm-backend/ThirdParty/variant/variant.hpp
@@ -12,6 +12,7 @@
#include "recursive_wrapper.hpp"
+#include "../../../../../std/alignof.hpp"
#include "../../../../../std/constexpr.hpp"
#include "../../../../../std/noexcept.hpp"
@@ -497,7 +498,7 @@ class variant
private:
static const std::size_t data_size = static_max<sizeof(Types)...>::value;
- static const std::size_t data_align = static_max<alignof(Types)...>::value;
+ static const std::size_t data_align = static_max<ALIGNOF(Types)...>::value;
using data_type = typename std::aligned_storage<data_size, data_align>::type;
using helper_type = variant_helper<Types...>;