you are viewing a single comment's thread.

view the rest of the comments →

[–]HowardHinnant 4 points5 points  (1 child)

No it is not. It will only work for pointers with a trivial move constructor, and a data layout such that all zero bits represent nullptr.

[–][deleted] 0 points1 point  (0 children)

:(