diff options
Diffstat (limited to 'tdutils')
| -rw-r--r-- | tdutils/td/utils/StealingQueue.h | 2 | ||||
| -rw-r--r-- | tdutils/td/utils/WaitFreeHashMap.h | 2 | ||||
| -rw-r--r-- | tdutils/td/utils/WaitFreeHashSet.h | 2 | ||||
| -rw-r--r-- | tdutils/td/utils/crypto.cpp | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/tdutils/td/utils/StealingQueue.h b/tdutils/td/utils/StealingQueue.h index c923cb92e..cbbba4f99 100644 --- a/tdutils/td/utils/StealingQueue.h +++ b/tdutils/td/utils/StealingQueue.h @@ -17,7 +17,7 @@ namespace td { template <class T, size_t N = 256> class StealingQueue { public: - static_assert(N > 0 && (N & (N - 1)) == 0, ""); + static_assert(N > 0 && (N & (N - 1)) == 0); // tries to put a value // returns if succeeded diff --git a/tdutils/td/utils/WaitFreeHashMap.h b/tdutils/td/utils/WaitFreeHashMap.h index 576564c88..6235a2ec7 100644 --- a/tdutils/td/utils/WaitFreeHashMap.h +++ b/tdutils/td/utils/WaitFreeHashMap.h @@ -17,7 +17,7 @@ namespace td { template <class KeyT, class ValueT, class HashT = Hash<KeyT>, class EqT = std::equal_to<KeyT>> class WaitFreeHashMap { static constexpr size_t MAX_STORAGE_COUNT = 1 << 8; - static_assert((MAX_STORAGE_COUNT & (MAX_STORAGE_COUNT - 1)) == 0, ""); + static_assert((MAX_STORAGE_COUNT & (MAX_STORAGE_COUNT - 1)) == 0); static constexpr uint32 DEFAULT_STORAGE_SIZE = 1 << 12; FlatHashMap<KeyT, ValueT, HashT, EqT> default_map_; diff --git a/tdutils/td/utils/WaitFreeHashSet.h b/tdutils/td/utils/WaitFreeHashSet.h index 1c21329ff..f90ccbde7 100644 --- a/tdutils/td/utils/WaitFreeHashSet.h +++ b/tdutils/td/utils/WaitFreeHashSet.h @@ -17,7 +17,7 @@ namespace td { template <class KeyT, class HashT = Hash<KeyT>, class EqT = std::equal_to<KeyT>> class WaitFreeHashSet { static constexpr size_t MAX_STORAGE_COUNT = 1 << 8; - static_assert((MAX_STORAGE_COUNT & (MAX_STORAGE_COUNT - 1)) == 0, ""); + static_assert((MAX_STORAGE_COUNT & (MAX_STORAGE_COUNT - 1)) == 0); static constexpr uint32 DEFAULT_STORAGE_SIZE = 1 << 12; FlatHashSet<KeyT, HashT, EqT> default_set_; diff --git a/tdutils/td/utils/crypto.cpp b/tdutils/td/utils/crypto.cpp index 01fc1ff7a..8b8f85a93 100644 --- a/tdutils/td/utils/crypto.cpp +++ b/tdutils/td/utils/crypto.cpp @@ -312,8 +312,8 @@ struct AesBlock { #endif } }; -static_assert(sizeof(AesBlock) == 16, ""); -static_assert(sizeof(AesBlock) == AES_BLOCK_SIZE, ""); +static_assert(sizeof(AesBlock) == 16); +static_assert(sizeof(AesBlock) == AES_BLOCK_SIZE); class Evp { public: |
