Closed izissise closed 9 years ago
If one does this:
TimeHandling time(std::chrono::milliseconds(1000 /std::stoi(_set.getCvarList().getCvar("com_gameFps")))); time.start();
It would compile.
But this:
int mpl = 1000 /std::stoi(_set.getCvarList().getCvar("com_gameFps")); TimeHandling time(std::chrono::milliseconds(mpl)); time.start();
wouldn't.
Does someone know why ?
here the question on so: https://stackoverflow.com/questions/25687384/stdchrono-doesnt-work-if-passing-a-variable
Resolve by so people ;)
If one does this:
It would compile.
But this:
wouldn't.
Does someone know why ?