title: Safely moving a C++ object
body: <p>I’ve heard some words of warning against shipping an object to another memory location via <code>memcpy</code>, but I don’t know the specific reasons.  Unless its contained members do tricky things that depend on memory location, this should be perfectly safe … or not?</p>
  
  <p>EDIT: The contemplated use case is a data structure like a <code>vector</code>, which stores objects (not <em>pointers</em> to objects) in a continuous chunk of memory (i.e. an array).  To insert a new object at the <em>n</em>-th position, all objects starting at position <em>n</em> and beyond will need to be moved to make room for the object to be inserted.</p>