C++相談室 part30
■ このスレッドは過去ログ倉庫に格納されています
0141デフォルトの名無しさん
NGNG>5.3.4 New
>The new-expression attempts to create an object of the type-id or
>new-type-id to which it is applied. (中略) If the entity is a
>non-array object, the new-expression returns a pointer to the object
>created.
パラグラフの最後に"new は「生成された」オブジェクトのポインタを返す"
ってあるから、コンストラクタは通らないとまずいんじゃないかな。
コンストラクタを通らないと created にはならないんでは。
the object allocated なら別だけども。
■ このスレッドは過去ログ倉庫に格納されています