基本上,我想这样做:
// error: function call is not allowed in a constant expression:
static_assert(
std::numeric_limits<Volume>::max() > 123456,
"Volume data type too small"
);
我怎样才能解决这个问题?
基本上,我想这样做:
// error: function call is not allowed in a constant expression:
static_assert(
std::numeric_limits<Volume>::max() > 123456,
"Volume data type too small"
);
我怎样才能解决这个问题?