Skip to content

alias return type to workaround cuda error#393

Merged
nmwsharp merged 1 commit intomasterfrom
return_type_compiler_workaround
Apr 13, 2026
Merged

alias return type to workaround cuda error#393
nmwsharp merged 1 commit intomasterfrom
return_type_compiler_workaround

Conversation

@nmwsharp
Copy link
Copy Markdown
Owner

If this file is included under CUDA 12.8 (and some others), we get an error like:

include/polyscope/scalar_quantity.ipp:365:1: error: no declaration matches ‘std::pair<__remove_cv(double), __remove_cv(double)> polyscope::ScalarQuantity<QuantityT>::getMapRange()’
  365 | std::pair<double, double> ScalarQuantity<QuantityT>::getMapRange() {

This seems to be a buggy interaction between some nvcc and host compiler versions. Aliasing the type works around the error.

@nmwsharp nmwsharp merged commit 5450f00 into master Apr 13, 2026
10 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.

1 participant