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

Steve Ramsey clang at lucena.com
Sun Jul 15 14:11:27 PDT 2012


On Jul 15, 2012, at 1:55 PM, Rich E wrote:
> On Sun, Jul 15, 2012 at 1:38 PM, Steve Ramsey <clang at lucena.com> wrote:
>> This is correct behavior as per FDIS 12.8.18. Specifically, since there's a user-declared copy constructor, there needs to be a user-declared copy-assignment operator, if you want one; otherwise, the implicitly declared one is defined as deleted.
>> 
> Excuse my ignorance, but how is there a user-declared copy constructor?

Excuse my lack of proofreading; I meant user-declared destructor.

			Steve





More information about the cfe-dev mailing list