2 ms·
The code example in approach 2 looks ill-formed though. If you change line 12 to auto to let compiler deduce the return type, you will see error message "explic
by ianwong1999 3y ago
The code example in approach 2 looks ill-formed though. If you change line 12 to auto to let compiler deduce the return type, you will see error message "explicit specialization of 'clock_impl' after instantiation".
ref: https://stackoverflow.com/questions/36997351/using-a-template-before-its-specialized https://stackoverflow.com/questions/36997351/using-a-templat...
So not very sure how to elegantly inject our mock into the main code via the test section.