how is the support for latest VS2022 for c++22std?

  c++, c++20, gcc, visual-studio

This built and executed with GCC 11.2, yet does not compile with VS2022 C++.

#include <concepts>
#include <limits>
#include <iostream>

// bit_width including the sign-bit
template < std::integral N > consteval 
std::size_t bit_width(N = {}) noexcept

with the error,

Reverse.cpp(6): Error E0135: namespace "std" has no member "integral"

It works with GCC.

Source: Windows Questions C++

LEAVE A COMMENT