我应该在哪里使用宏,哪里更喜欢constexpr?它们基本不一样吗?
#define MAX_HEIGHT 720
VS
constexpr unsigned int max_height = 720;
c++ macros constexpr c++11
c++ ×1
c++11 ×1
constexpr ×1
macros ×1