mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-24 18:48:01 +02:00
Fixed issue choose 'int unknown' overload over generic method
This commit is contained in:
parent
c8055f0a38
commit
7bd29b5b69
6 changed files with 84 additions and 10 deletions
|
@ -350,6 +350,13 @@ public:
|
|||
return mVals[idx];
|
||||
}
|
||||
|
||||
void GetSafe(intptr idx, T& val)
|
||||
{
|
||||
if ((idx < 0) || (idx >= mSize))
|
||||
return;
|
||||
val = mVals[idx];
|
||||
}
|
||||
|
||||
T GetLastSafe()
|
||||
{
|
||||
if (mSize == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue