Closed SanderBouwhuis closed 3 months ago
(I think...) you're passing 11 parameters but have 12 substitution fields.
From the beginning of your format string: " <- [{}]{:02}:{:02}:{:02}.{:07}"
, the first parameters are:
time.Hour(), time.Minute(), time.Second(), time.NanoSecond()/100,
which seems like you're missing the parameter for [{}]
.
@mwinterb I am an idiot. I was in the process of making some changes when I thought it would be a good idea to update FMTLIB. I completely forgot I already changed the FMT_STRING.
Regardless, the error message is very confusing.
Compiler : Microsoft Visual Studio Community 2022 (64-bit) - Version 17.9.5 FmtLib : v100201
I have been using v100101 for a while now. I decided to upgrade the library to the current release version (v100201). But, when I recompile my solution, I get many errors.
This is the line which works with v100101 and fails with v100201:
Here are the first few errors:
Apparently, the problem is that there is a 'call to immediate function is not a constant expression'. Can someone explain what has changed in FmtLib which causes my code to no longer compile?