Since the HN username matches the twitter name, I'll bite: Is it the case that a raw function pointer is always trivially copyable?<p>I'm not super familiar with C++'s memory model, especially since they have deprecated the notion of POD and replaced it with trivially constructable.<p>My rudimentary thought process is that you can't just "move" raw functions because there is probably some assumptions made that a C++ function's call-site isn't going to move around if it isn't owned by an object. Otherwise, the runtime would have to deduce the location of the function call every time.<p>Well, on second thought, <i>is</i> there any reason why an int function ptr should be any different from an int ptr?<p>Asking as someone who has been writing C++ on-and-off for a few years for games, school, etc. but never professionally.