-
Notifications
You must be signed in to change notification settings - Fork 874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development: 1.6.0 #3141
base: master
Are you sure you want to change the base?
Development: 1.6.0 #3141
Conversation
…ct call can exit immediately
…fore changing the flag. Otherwise it would confuse the closing function when used on a connected socket
…ges by google test
… dead code (this solution deadlocks)
srtcore/utilities.h
Outdated
/* | ||
const T& operator[](int index) const | ||
{ | ||
if (index < 0 || static_cast<size_t>(index) >= m_size) | ||
throw_invalid_index(index); | ||
|
||
return m_entries[index]; | ||
} | ||
|
||
T& operator[](int index) | ||
{ | ||
if (index < 0 || static_cast<size_t>(index) >= m_size) | ||
throw_invalid_index(index); | ||
|
||
return m_entries[index]; | ||
} | ||
*/ |
Check notice
Code scanning / CodeQL
Commented-out code Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 1 day ago
To fix the problem, we should remove the commented-out code block from lines 452 to 468. This will eliminate the distraction and potential confusion caused by the presence of commented-out code. The existing functionality of the operator[]
functions will remain unchanged.
@@ -451,19 +451,3 @@ | ||
|
||
/* | ||
const T& operator[](int index) const | ||
{ | ||
if (index < 0 || static_cast<size_t>(index) >= m_size) | ||
throw_invalid_index(index); | ||
|
||
return m_entries[index]; | ||
} | ||
|
||
T& operator[](int index) | ||
{ | ||
if (index < 0 || static_cast<size_t>(index) >= m_size) | ||
throw_invalid_index(index); | ||
|
||
return m_entries[index]; | ||
} | ||
*/ | ||
|
|
The PR for complete review and CI. Assigned PRs:
OTHERS: