多くの場合、次のようなハックに遭遇します
//lets say this is some class that still doesnt support...
//...all the functionality that it should based on the design docs
void MyClass::MyFunction()
{
throw std::exception("not implemented");
}
これは悪い習慣だと思いますが、それはさておき:
関数が使用されている場合にのみ、コンパイル中に同じことを行う方法はありますか(別名、未使用の場合、コンパイルは成功するはずです)。
編集:仮想メモリ機能にも興味があります。