Closed heretic13 closed 7 months ago
Dvir Yitzchaki, do you think you might have a look at what the problem is? It seems related to your charconv.hpp. Although the actual problem might be in the overall infrastructure. Please let me know if you are in a position to have a look what the issue is. Tnx.
Dvir, I had a quick look at the code.
is needed and currently missing in charconv.hpp.
Hello, heretic13. :-) If you are in a rush you might consider replacing the boost::cnv::charconv converter with, say, boost::cnv::strtol to keep going while we are looking into the problem. Tnx.
Thank you. I replaced it with boost::cnv::spirit for better performance.
Fixed it. Well, I believe I fixed it. Copied the problematic code from the original post to test/issue-64.cpp, compiled and ran. Merging the changes into the boost/convert/develop branch and will be propagating to master shortly after all tests passed (expected). If all goes well, then will be closing the ticket. Thank you for raising it. Much appreciated.
@yet-another-user I see you closed you're PR. Do you want me to open one?
Dvir, the fix seemed fairly straightforward. I was not sure of your current situation. So, I went ahead and made the changes myself. Hope you don't mind. Will check it into the develop branch tonight. Feel free to take over from there if needs be. Tnx for the update.
Merged into the master branch. Should be in the next release.
Hello.
Boost-1.84 OS Windows 11. Microsoft Visual Studio 2022 (Version 17.9.3)
Sample program: `
include
include <boost/convert.hpp>
// If I comment line below, program not compiled
include <boost/make_default.hpp>
include <boost/convert/charconv.hpp>
int main() { auto cnv4 = boost::cnv::charconv();
} ` If I comment out the line "#include <boost/make_default.hpp>" the program will not compile. The use of this header is not obvious.
This program crashes with an error when calling boost::convert().