21 Mar
2012
21 Mar
'12
2:35 p.m.
It turns out that something in my code did want the assignment, so the class "did its job" but was totally unhelpful in telling me where in the code this was.
To get more helpful error, declare a private copy-ctor & assignment operator in your class - and you'll see who attempts to copy.
I wonder if we should add an extra inheritance layer. We would make a new noncopyable_inner class with the disabling code, then have the current noncopyable inherit from the new class.
I'm afraid, that won't help. This is a known MSVC issue, which they don't want to fix: http://connect.microsoft.com/VisualStudio/feedback/details/99186/diagnostic-...