Skip to content

Move non-const ConvertFrom to const#237

Open
DavidPeicho wants to merge 1 commit intojbikker:devfrom
DavidPeicho:convert-const-correctness
Open

Move non-const ConvertFrom to const#237
DavidPeicho wants to merge 1 commit intojbikker:devfrom
DavidPeicho:convert-const-correctness

Conversation

@DavidPeicho
Copy link
Contributor

Makes the remaining non-const ConvertFrom(original&) into ConvertFrom(const original&). This means that ConvertFrom expects the argument to have been "prepared" properly. I don't know if there is a simple and efficient way to ensure the BVH is properly prepared.

This MR should probably be merged on a branch 2.0.0 because it's breaking the API.

@DavidPeicho
Copy link
Contributor Author

@jbikker We could also make MBVH::ConvertFromConst to have backward compat

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