[cfe-dev] problem with std::function and virtual destructor

Howard Hinnant hhinnant at apple.com
Sun Jul 15 12:50:11 PDT 2012


On Jul 15, 2012, at 3:59 AM, Richard Smith <richard at metafoo.co.uk> wrote:

> I'm not sure why instantiating std::function<void(X&)>::operator= would require X to be complete -- libstdc++ does not behave that way. It's possible this is a bug in libc++, but it's also possible that the standard allows this behavior and libstdc++ is just more permissive. Hopefully Howard can help with that part.

Just fyi, I'm not ignoring this question.  I just haven't figured out yet why I'm requiring complete types.  Working...

Howard




More information about the cfe-dev mailing list