Я пытаюсь найти описание в https://learn.microsoft.com/en-us/cpp/c ... w=msvc-170, но он не включает этот атрибут.
Вот код.
Код: Выделить всё
// Should we use [[msvc::known_semantics]] to tell the compiler that certain
// type trait specializations have the standard-mandated semantics?
#if _HAS_MSVC_ATTRIBUTE(known_semantics)
#define _MSVC_KNOWN_SEMANTICS [[msvc::known_semantics]]
#else
#define _MSVC_KNOWN_SEMANTICS
#endif
Код: Выделить всё
template
using _Remove_cvref_t _MSVC_KNOWN_SEMANTICS = remove_cv_t;
Подробнее здесь: https://stackoverflow.com/questions/796 ... -semantics
Мобильная версия