3

次のコード サンプルを考えます。

boost::optional< int > opt;
opt = 12;
int* p( &*opt );
opt = 24;
assert( p == &*opt );

アサーションが常に有効であるという保証はありますか?

4

1 に答える 1