deleted-functions

Can any function be a deleted-function?

The working draft explicitly calls out that defaulted-functions must be special member functions (eg copy-constructor, default-constructor, etc, (§8.4.2.1-1)). Which makes perfect sense. However, I don't see any such restriction on deleted-functions(§8.4.3). Is that right? Or in other words are these three examples valid c++0? struc...

What is "= delete"?

What do these two strange lines of code mean? thread_guard(thread_guard const&) = delete; thread_guard& operator=(thread_guard const&) = delete; ...

Deleting virtual functions in C++0x

It isn't clear what happens if I delete a virtual method in C++0x: virtual int derive_func() = delete; Does this mean this class and everything that inherits from it can not define/implement the derive_func() method? Or is this illegal/compile error? ...