Skip to content

Fix build error in BitSet getHash when building with MSVC#229

Open
ayhanefe wants to merge 1 commit into
luceneplusplus:masterfrom
ayhanefe:gethash-msvc-fix
Open

Fix build error in BitSet getHash when building with MSVC#229
ayhanefe wants to merge 1 commit into
luceneplusplus:masterfrom
ayhanefe:gethash-msvc-fix

Conversation

@ayhanefe
Copy link
Copy Markdown

I noticed the project won’t build on MSVC 19.5 and boost 1.9 due to the getHash function in BitSet.cpp. I believe the issue is that boost::make_function_output_iterator() expects copy assignable. The simplest fix I should be to wrap the lambda in std::ref. This shouldn’t have performance impact.

I confirmed the project builds on MSVC and all the tests pass with this change

@ayhanefe ayhanefe changed the title Error in BitSet getHash when building with MSVC Fix build error in BitSet getHash when building with MSVC May 26, 2026
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.

1 participant