|
Bugzilla – Full Text Bug Listing |
| Summary: | Binary search in LteMiErrorModel::GetTbDecodificationStats is incorrect | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Alexander Krotov <krotov> |
| Component: | lte | Assignee: | Biljana Bojović <bbojovic> |
| Status: | PATCH PENDING --- | ||
| Severity: | normal | CC: | mmiozzo, ns-bugs, tomh |
| Priority: | P3 | ||
| Version: | ns-3-dev | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
Patch 1/2
Patch 1/2 Patch 2/2 (actual fix, apply on top of the first) |
||
|
Description
Alexander Krotov
2016-12-15 15:58:00 UTC
Created attachment 2703 [details]
Patch 1/2
Reuploaded first patch as patch.
Created attachment 2704 [details]
Patch 2/2 (actual fix, apply on top of the first)
Here I wrapped cbSizeTable into std::array to use std::lower_bound. According to tests (no assertion failures) the code corresponds to the simple version of code.
I think we never discussed limits of C++11 usage in NS-3 code since switch, but I decided that using "auto" for iterator and lambda for a one-line comparison function is sane in this case.
|