This is the code that cause the warning:
inline auto getclock() { return std::chrono::steady_clock::now(); }
inline auto getelapsed(auto b, auto e) { return std::chrono::duration_cast<std::chrono::nanoseconds>(e-b).count(); }
//USAGE: auto b=getclock(); some_func_to_be_timed(...); auto duration=getelapsed(b, getclock()); ..
This code compiled without problem before I recently upgraded to gcc 8 (c++17), now I get the warning as stated in the question. Why would I get this warning now, and how should I handle it?
PS: I don't use concepts (explicitly) anywhere in the rest of the code.