Fix CS0034 in Capacity method of std::vector
This commit is contained in:
parent
a6eae77dd5
commit
8a6290b12f
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