编译器错误 C2389

“operator”:非法的操作数“nullptr”

nullptr 不可为操作数。

以下示例生成 C2389:

// C2389.cpp
// compile with: /clr
int main() {
   throw nullptr;   // C2389
}