From f99f80b4786d5ba6d8fb969e77f8bce266f857f9 Mon Sep 17 00:00:00 2001 From: Anatoly Shirokov Date: Tue, 13 Feb 2018 15:11:19 +0300 Subject: [PATCH] Add comment related to conditional compilation --- Telegram/SourceFiles/base/assertion.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/base/assertion.h b/Telegram/SourceFiles/base/assertion.h index f5662ce68..1711e1504 100644 --- a/Telegram/SourceFiles/base/assertion.h +++ b/Telegram/SourceFiles/base/assertion.h @@ -43,6 +43,8 @@ inline constexpr void noop() { std::abort(); } +// Since MSVC 2015 cannot understand "constexpr void" (void is literal since C++14) +// we have to use conditional compilation inline #if !defined(_MSC_VER) || (_MSC_VER > 1900) constexpr