Dictionary constructor doesn't take ints.
mitchellwong opened this issue · comments
According to the readme CF::Dictionary d3( 100 ); is valid for constructing a dictionary with an initial capacity. If I do this I get error Types CF::Dictionary and int are not compatible. As well, I don't see a constructor for int in the Dictionary header.
"All CF::Array objects are created as mutable, and an initial capacity can be passed to the constructor:"
"Initial capacity" seems a bit misleading because the capacity of a CFType can't change once set. CoreFoundation documentation tends towards the phrase "maximum capacity", but "fixed capacity" may be more suitable.
That's right, I'll fix the documentation in the development branch for the next release. Thanks.