I'm currently writing some c++ code for the AVR platform and I'm wanting to disable something that's fundamentally non-copyable. Given that I'm already using c++0x features I thought that a good way to do this would be to use the =delete
specifier:
write_only(write_only const&) = delete;
However when I try to compile this I get the following error:
error: invalid pure specifier (only `= 0' is allowed) before ';' token
This suggests to me that this particular c++0x language feature is not supported by avr-gcc. Is this something I'm doing wrong? If not, what is the best workaround for this?
I'm using WinAVR-20100110 to compile.