Open mxdh opened 4 years ago
Checklist
"C_Cpp.enhancedColorization": "Disabled"
#include <algorithm> #include <functional> #include <iostream> #include <type_traits> #include <utility> template <typename _Tp> concept number = requires { requires( std::is_same_v<_Tp, std::remove_reference<decltype( std::declval<_Tp>() + std::declval<_Tp>())> >); }; int main() { static_assert(std::is_same_v<int, decltype(1 + 1)>); std::cout << "int is a number: " << number<int> << std::endl; std::cout << "pointer is a number: " << number<void*> << std::endl; }
Cold Horizon
Sorry,I'm not good at English. I think each pair of parentheses should match each other.
Checklist
"C_Cpp.enhancedColorization": "Disabled"
The code with a problem is:
It looks like:
Cold Horizon
It should look like:
Sorry,I'm not good at English. I think each pair of parentheses should match each other.