CPPPROGLIB Telegram 4945
😱 Как узнать версию C++ из кода?

Для того чтобы узнать версию C++ из кода можно воспользоваться макросом __cplusplus. Он будет заменён числом, которое будет указывать на версию. Например для C++14 это будет 201402, а для C++20 — 202002.

Для компилятора MSVC нужно указать опцию /Zc:__cplusplus, иначе он будет всегда выдавать 199711
🔥16👍3



tgoop.com/cppproglib/4945
Create:
Last Update:

😱 Как узнать версию C++ из кода?

Для того чтобы узнать версию C++ из кода можно воспользоваться макросом __cplusplus. Он будет заменён числом, которое будет указывать на версию. Например для C++14 это будет 201402, а для C++20 — 202002.

Для компилятора MSVC нужно указать опцию /Zc:__cplusplus, иначе он будет всегда выдавать 199711

BY Библиотека C/C++ разработчика | cpp, boost, qt




Share with your friend now:
tgoop.com/cppproglib/4945

View MORE
Open in Telegram


Telegram News

Date: |

But a Telegram statement also said: "Any requests related to political censorship or limiting human rights such as the rights to free speech or assembly are not and will not be considered." Ng, who had pleaded not guilty to all charges, had been detained for more than 20 months. His channel was said to have contained around 120 messages and photos that incited others to vandalise pro-government shops and commit criminal damage targeting police stations. A vandalised bank during the 2019 protest. File photo: May James/HKFP. Activate up to 20 bots In handing down the sentence yesterday, deputy judge Peter Hui Shiu-keung of the district court said that even if Ng did not post the messages, he cannot shirk responsibility as the owner and administrator of such a big group for allowing these messages that incite illegal behaviors to exist.
from us


Telegram Библиотека C/C++ разработчика | cpp, boost, qt
FROM American