timercpp icon indicating copy to clipboard operation
timercpp copied to clipboard

aut is not Allowed

Open Tobias3107 opened this issue 5 years ago • 2 comments

image

Auto is not Allowed here I copy the timercpp.h to my Project and it doesnt work because every auto function has a error : 'auto' is not allowed here

Tobias3107 avatar Mar 24 '20 18:03 Tobias3107

Hi.. @Tobias3107 Could you please let me know your OS and gcc version

shalithasuranga avatar Mar 25 '20 04:03 shalithasuranga

Try this. auto keyword is not always compatible with c++17.

Capturetemp

Don't forget to add the template<typename Function> above the member function also.

Capturetemp2

source- https://www.fluentcpp.com/2018/12/28/timer-cpp/

working through this lib now looks good!

Thanks!

hadwll avatar Apr 04 '20 07:04 hadwll