![]() |
Home | Libraries | People | FAQ | More |
| 1. | Why can't I compare |
|
在
當 最有希望的方法是找到一種檢測
所有這些問題都被轉化為 另一種選擇方案是把負擔放到要使用 |
|
| 2. | I see void pointers; is this [mess] type safe?(我看到了 void 指針,這會[擾亂]類型安全嗎?) |
是的,即使 |
|
| 3. | Why are there workarounds for void returns? C++ allows them!(為什麼會有專門應付空返回的 workarounds,C++ 是允許它們的!) |
|
空返回被 C++ 標準允許,就像下面這樣的代碼片段: void f();
void g() { return f(); }
這是 int f();
void g() { return f(); }
實際上,沒有使用的空返回允許 |
|
| 4. | Why (function) cloning?((函數)為什麼要克隆?) |
在 2000 年 11 和 12 月,克隆和引用計數的問題爭論了很長時間,最終決定克隆提供了更加可預言的語義。我不想對這場爭論舊調重彈,但是如果對於一個特定應用來說克隆是不正確的,reference-counting allocator(引用計數分配器)也可以使用。 |
|
| 5. | How much overhead does a call through |
|
然而,你的應用的性能可能會得益於或受損於 [Answer provided by Matt Hurd. See http://article.gmane.org/gmane.comp.lib.boost.devel/33278] |
Last revised: November 03, 2006 at 19:41:09 GMT |
Copyright 2001-2004 Douglas Gregor |