Collections implicit cast constructor fix
This one prohibits annoying casts. It is also important for future context injection and follows STL practice.
This commit is contained in:
@@ -149,7 +149,7 @@ public:
|
||||
/// Initializes a new instance of the <see cref="Dictionary"/> class.
|
||||
/// </summary>
|
||||
/// <param name="capacity">The initial capacity.</param>
|
||||
Dictionary(const int32 capacity)
|
||||
explicit Dictionary(const int32 capacity)
|
||||
{
|
||||
SetCapacity(capacity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user