Closed Guillaume227 closed 1 year ago
Hi,
Thanks for the report.
I guess that this issue should be reported to the original author of pnm. Could you please report this to him?
Since its license is MIT, we could also edit the file and replace _str
by _s
, since HelloImGui requires C++17 (but pnm is made for C++11).
However, let's wait for a few days, until we see if the original author answers with a possible patch :-)
In the meantime, I pushed a temporary fix in https://github.com/pthom/hello_imgui/commit/aad56854294d6766f571fdd6188fa46fc56e34ee, as per your suggestion
Thanks for the prompt reply. I just filed an issue over in the pnm project as you suggested: https://github.com/ToruNiina/pnm/issues/6 I still find it suspicious that I am the first one reporting this on what seems like a basic windows use case. I can't be the first one to have attempted that?
Well, you probably just got an update on your compiler, which is not yet available on github action runners.
I did not get this error yet, although its being compiled on lots of compilers at each push
Thanks for the temporary fix - I just want to point out there are a number of such statements in that same file and all need replacing for compilation to pass in my case.
Thanks
I am trying to compile my app against hello_imgui checked-out as a submodule on Windows. I am surprised it's complaining out of the box about the following statement in
pnm.h
:using detail::literals::operator"" _str;
I haven't found authoritative info about the proper way to import literal operators but I tried locally replacing the using statements with:
using namespace details::literals
and that makes the error go away.