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:
authorAlex Zolotarev <alex@maps.me>2015-06-24 13:39:30 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:52:30 +0300
commitf2aa6313315d27176ca3163f19c8fbe3e7919f5c (patch)
treee8a7354c08a86a6daeb99be6bcc604ba94720598 /indexer/feature_impl.hpp
parent9e2c0b978e26d5b668fa36c3a01fac79913932db (diff)
Replaced boost’s STATIC_ASSERT with a C++11 one.
Diffstat (limited to 'indexer/feature_impl.hpp')
-rw-r--r--indexer/feature_impl.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indexer/feature_impl.hpp b/indexer/feature_impl.hpp
index 72757633ff..66d7357e3f 100644
--- a/indexer/feature_impl.hpp
+++ b/indexer/feature_impl.hpp
@@ -21,9 +21,9 @@ namespace feature
str = prefix;
static char const arrChar[] = { '0', '1', '2', '3' };
- STATIC_ASSERT ( ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrWorldScales) );
- STATIC_ASSERT ( ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrCountryScales) );
- ASSERT ( ind >= 0 && ind < ARRAY_SIZE(arrChar), (ind) );
+ static_assert(ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrWorldScales), "");
+ static_assert(ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrCountryScales), "");
+ ASSERT(ind >= 0 && ind < ARRAY_SIZE(arrChar), (ind));
str += arrChar[ind];
return str;