]> OCCT Git - occt.git/commit
Foundation Classes - Move to constexpr Pascal allocator for PLib::Bin (#777)
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Sat, 1 Nov 2025 19:56:04 +0000 (19:56 +0000)
committerGitHub <noreply@github.com>
Sat, 1 Nov 2025 19:56:04 +0000 (19:56 +0000)
commitb04257c25672d89210b284b406eb1d20218e3aca
tree1bf5d6aabc6b99c7cefa1b6cbe7454d4326f93e0
parentfe2f7bc983f0382e2da3700670492044804d2465
Foundation Classes - Move to constexpr Pascal allocator for PLib::Bin (#777)

- Converts `BSplCLib::MaxDegree()` to a constexpr function to enable compile-time evaluation
- Replaces the dynamically allocated `BinomAllocator` with a template-based constexpr Pascal's triangle that is computed at compile time
src/FoundationClasses/TKMath/BSplCLib/BSplCLib.hxx
src/FoundationClasses/TKMath/BSplCLib/BSplCLib.lxx
src/FoundationClasses/TKMath/GTests/PLib_Test.cxx
src/FoundationClasses/TKMath/PLib/PLib.cxx