m-schuetz / CudaLOD

Other
132 stars 11 forks source link

call to immediate function is not a constant expression #5

Open asher-bit opened 1 year ago

asher-bit commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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!