0
已修复

A small mistake in Flyweight in c++

dengyueyun666 3 年 前 更新人: Alexander Shvets 3 年 前 1

In the function of AddCarToPoliceDatabase, the last line is

flyweight.Operation({plates, owner});

I think this line should be change to 

flyweight.Operation({owner, plates});

In this way, the order of parameters are consistent with UniqueState constructor.

已修复

Thanks! I'll fix this with the next update.

UserEcho 的客户支持