Skip to content

MSVC PageList next/prev bug fix#1319

Merged
azrogers merged 2 commits intoCesiumGS:mainfrom
calebbuffa:bug-fix/paged-list-msvc
Mar 10, 2026
Merged

MSVC PageList next/prev bug fix#1319
azrogers merged 2 commits intoCesiumGS:mainfrom
calebbuffa:bug-fix/paged-list-msvc

Conversation

@calebbuffa
Copy link
Contributor

Fixes #1317. Only two lines changed, PagedList.h would fail to compile with MSVC if a user initialized their own PagedList. The fix was to initialize with ErrorList{} instead of nullopt.

Please let me know if I need to do anything else for this PR. I have signed the CLA.

@j9liu j9liu added this to the April 2026 Release milestone Mar 10, 2026
@azrogers
Copy link
Contributor

Thanks for the change @calebbuffa!

Just wondering, are you using this for iTwin? That's what the class was designed for, and why it's living in CesiumITwinClient, but I wonder if it might make sense to have a more general PagedList class for all HAL-compatible APIs.

@azrogers azrogers merged commit c5292a1 into CesiumGS:main Mar 10, 2026
28 checks passed
@calebbuffa
Copy link
Contributor Author

Just wondering, are you using this for iTwin? That's what the class was designed for, and why it's living in CesiumITwinClient, but I wonder if it might make sense to have a more general PagedList class for all HAL-compatible APIs.

Thank you for the quick PR! I'm actually working on Python bindings for this repo, and because pybind11 requires specific instances of templates I ran into these errors - but I would agree a more general class would be helpful!

@calebbuffa calebbuffa deleted the bug-fix/paged-list-msvc branch March 11, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: PagedList<T>::next()/prev() fails to compile on MSVC when Result<PagedList<T>> is instantiated

3 participants