Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call to immediate function is not a constant expression #5

Open
asher-bit opened this issue Aug 23, 2023 · 2 comments
Open

call to immediate function is not a constant expression #5

asher-bit opened this issue Aug 23, 2023 · 2 comments

Comments

@asher-bit
Copy link

the error location in there

string formatted = std::format(formatString, 
	datestring, devicename, strategy, 
	split_ms, voxelize_ms, total_ms,
	results.points, results.voxels, results.nodes, mpointsPerS, 
	results.allocatedMemory_splitting, results.allocatedMemory_voxelization,
	strMinMax_points, strMinMax_voxels,
	results.histogram_maxval, ssHistogram_points.str(), ssHistogram_voxels.str(),
	strLevels
);

how can I solve this problem, pls

@mschuetzCG
Copy link

Which compiler are you using? I think mac compilers often don't like .str() calls in arguments. You could try extract all arguments with .str() and store them in variables that you then pass to the function.

(m-schuetz here, don't have access to my main account from vacation)

@asher-bit
Copy link
Author

Which compiler are you using? I think mac compilers often don't like .str() calls in arguments. You could try extract all arguments with .str() and store them in variables that you then pass to the function.

(m-schuetz here, don't have access to my main account from vacation)

I use windows11, VS2022 and Cuda11_8.
I fix this just skip this formatted, however, thank for your reply!

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

No branches or pull requests

2 participants