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:
Mateusz Karbowiak
2024-10-30 22:29:26 +01:00
parent f77f551b72
commit 5439efc559
5 changed files with 5 additions and 5 deletions

View File

@@ -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);
}