leejet / stable-diffusion.cpp

Stable Diffusion in pure C/C++
MIT License
2.9k stars 232 forks source link

Use std::from_chars instead of std::stof #274

Closed snakelizzard closed 1 month ago

snakelizzard commented 1 month ago

It is better for locales where decimal separator differs from '.'

leejet commented 1 month ago

std::from_chars was introduced in C++17, but sd.cpp has a minimum requirement of C++11, so this change is not suitable.