diff options
author | Alex Zolotarev <alex@maps.me> | 2015-06-24 13:39:30 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:52:30 +0300 |
commit | f2aa6313315d27176ca3163f19c8fbe3e7919f5c (patch) | |
tree | e8a7354c08a86a6daeb99be6bcc604ba94720598 /indexer/data_header.cpp | |
parent | 9e2c0b978e26d5b668fa36c3a01fac79913932db (diff) |
Replaced boost’s STATIC_ASSERT with a C++11 one.
Diffstat (limited to 'indexer/data_header.cpp')
-rw-r--r-- | indexer/data_header.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/data_header.cpp b/indexer/data_header.cpp index 726852f725..83bf6dcf91 100644 --- a/indexer/data_header.cpp +++ b/indexer/data_header.cpp @@ -57,7 +57,7 @@ namespace feature template <class TSink, class TCont> void SaveBytes(TSink & sink, TCont const & cont) { - STATIC_ASSERT(sizeof(typename TCont::value_type) == 1); + static_assert(sizeof(typename TCont::value_type) == 1, ""); uint32_t const count = static_cast<uint32_t>(cont.size()); WriteVarUint(sink, count); @@ -68,7 +68,7 @@ namespace feature template <class TSource, class TCont> void LoadBytes(TSource & src, TCont & cont) { - STATIC_ASSERT(sizeof(typename TCont::value_type) == 1); + static_assert(sizeof(typename TCont::value_type) == 1, ""); ASSERT ( cont.empty(), () ); uint32_t const count = ReadVarUint<uint32_t>(src); |