Skip to content

Fix Windows/MSVC members of template class and include <limits> for C++20#4688

Merged
WeiqunZhang merged 2 commits intoAMReX-Codes:developmentfrom
ffambri:fix/windows
Sep 30, 2025
Merged

Fix Windows/MSVC members of template class and include <limits> for C++20#4688
WeiqunZhang merged 2 commits intoAMReX-Codes:developmentfrom
ffambri:fix/windows

Conversation

@ffambri
Copy link
Copy Markdown
Contributor

@ffambri ffambri commented Sep 30, 2025

Summary

Fix MSVC members of template class and #include <limits> (also for Intel OneAPI) for C++20

  • in AMReX_MLCellLinOp.H: Added this-> to access dependent
    members of template classes to resolve MSVC C2065 errors.
  • in AMReX_Math.H: Added #include <limits>
    compilation on Windows (MSVC and Intel OneAPI).

- in AMReX_MLCellLinOp.H:  Added 'this->' to access dependent
  members of template classes to resolve MSVC C2065 errors.
- in AMReX_Math.H: Added #include <limits> to enable C++20
  compilation on Windows (MSVC and Intel OneAPI).
@WeiqunZhang WeiqunZhang merged commit 29e418a into AMReX-Codes:development Sep 30, 2025
75 checks passed
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.

2 participants