[cfe-commits] r169571 - /cfe/trunk/lib/StaticAnalyzer/Core/RegionStore.cpp

Ted Kremenek kremenek at apple.com
Fri Dec 7 10:23:15 PST 2012


On Dec 7, 2012, at 9:36 AM, Jordan Rose <jordan_rose at apple.com> wrote:

>> +  RegionBindingsRef &operator=(const RegionBindingsRef &X) {
>> +    *static_cast<ParentTy*>(this) = X;
>> +    return *this;
>> +  }
> 
> This is the default copy-constructor; better to leave it out.

Remove it, and you will see that the source doesn't compile.  :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121207/7fa19677/attachment.html>


More information about the cfe-commits mailing list