Can any function be a deleted-function?
- by Caspin
The working draft explicitly calls out that defaulted-functions must be special member functions (eg copy-constructor, default-constructor, etc). Which makes perfect sense.
However, I don't see any such restriction on deleted-functions. Is that right?
Or in other words are these three examples valid c++0?
struct Foo
{
// 1
int bar( int ) = delete;
};
// 2
int baz( int ) = delete;
template< typename T >
int boo( T t );
// 3
template<>
int boo<int>(int t) = delete;