The assignment operator in base class does not seem to be available in derived class. Given this code:
I was just looking at the implementation of functools.lru_cache, when I stumbled across this snippet:
Consider the following code:Compiler A compiles this without issue unless I uncomment out the line A a2(a); at which point it complains about the copy constructor for std::unique_ptr being deleted, and therefore I can't copy construct A. Compiler B, however, makes that complaint even if I leave that line commented...
I understand that in Java assignment evaluates to the value of the right operand so statements like x == (y = x) evaluate to true.