Merge pull request #2239 from igt-gteubl/csharp-capacity-cs0034
C#: Fix CS0034 in Capacity method of std::vector
This commit is contained in:
commit
e4c972c328
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@
|
||||||
return (int)capacity();
|
return (int)capacity();
|
||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
if (value < size())
|
if (value < 0 || ($typemap(cstype, size_t))value < size())
|
||||||
throw new global::System.ArgumentOutOfRangeException("Capacity");
|
throw new global::System.ArgumentOutOfRangeException("Capacity");
|
||||||
reserve(($typemap(cstype, size_t))value);
|
reserve(($typemap(cstype, size_t))value);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue