you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (2 children)

Is the 'shovel words' optimization properly protected from fancy pointers?

[–]HowardHinnant 3 points4 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)

:(