Hacker News new | past | comments | ask | show | jobs | submit | ianwong1999's comments login

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-templat...

So not very sure how to elegantly inject our mock into the main code via the test section.


Location: Hong Kong

Remote: Yes

Willing to relocate: No

Technologies: C/C++, Python, Kotlin, Java

Résumé/CV: Upon request

Email: ianwong1999@yahoo.com.hk

Linkedin: https://www.linkedin.com/in/yik-chun-wong-502731171/

Codeforces: https://codeforces.com/profile/Bedge

I am a software engineer that passionate about problem-solving and continuous learning. Have constantly been participating in competitive programming using C++ since high school.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: