
8 Mar
2006
8 Mar
'06
12:58 p.m.
Hi, When two optionals are swaped and only one is initialized, then wrapped value in the uninitialized optional is constructed and that in initialized one is destroyed. It's maybe not necessary. It should be sufficient and more effective to swap optional_base's member (m_initialized and m_storage). Is there any reason for this implementation? Regards, Vaclav
7037
Age (days ago)
7037
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vaclav Vesely