例如,在C++11中编写是合法的:
int b = (some_function_returning_void(), 1020);
或者
int b = (static_assert(2 > 1, "all is lost"), 304);
相似问题