Skip to content

Fix compilation for MSVC14. - #5490

Merged
kimkulling merged 1 commit into
assimp:masterfrom
LukasBanana:master
Mar 11, 2024
Merged

kimkulling merged 1 commit into
assimp:masterfrom
LukasBanana:master

Conversation

@LukasBanana

@LukasBanana LukasBanana commented Mar 10, 2024 •

Copy link
Copy Markdown
Contributor

This PR fixes Assimp compilation for older compilers with lack of C++17 support such as MSVC14.

  • std::min/max were not defined in StackAllocator.inl; Also added explicit template arguments to break macro expansion if Windows.h is included prior and NOMINMAX macro is not present.
  • Made static_assert statements compatible with C++11 in ProcessHelper.cpp.
  • Removed unused string_view include in ObjFileParser.cpp.

- std::min/max were not defined in StackAllocator.inl; Also added explicit template arguments to break macro expansion if Windows.h is included prior and NOMINMAX macro is not present.
- Made static_assert statements compatible with C++11 in ProcessHelper.cpp.
- Removed unused string_view include in ObjFileParser.cpp.

@kimkulling kimkulling left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine.

@kimkulling
kimkulling merged commit 727774f into assimp:master Mar 11, 2024
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot for your contribution.

kimkulling pushed a commit that referenced this pull request Jul 1, 2026
- std::min/max were not defined in StackAllocator.inl; Also added explicit template arguments to break macro expansion if Windows.h is included prior and NOMINMAX macro is not present.
- Made static_assert statements compatible with C++11 in ProcessHelper.cpp.
- Removed unused string_view include in ObjFileParser.cpp.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants