You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the implementation of inplace_any implements move semantic by simply copying the storage bits; this works for relocatable types, but doesn't work in general case (one example I have encountered that breaks is std::ofstream). We need to call the type's move constructor to handle this properly in all cases, which means storing not only a deleter, but a "mover".
The text was updated successfully, but these errors were encountered:
Currently, the implementation of
inplace_any
implements move semantic by simply copying the storage bits; this works for relocatable types, but doesn't work in general case (one example I have encountered that breaks isstd::ofstream
). We need to call the type's move constructor to handle this properly in all cases, which means storing not only a deleter, but a "mover".The text was updated successfully, but these errors were encountered: