fixed compile error in estimate_capacity.hpp