Y
Hacker News
new
|
ask
|
show
|
jobs
by
crystalgiver
3984 days ago
Interesting approach, this is how I do it:
cc -std=c++14
No preprocessor necessary! Also it checks the type of both arguments.
1 comments
ambrop7
3983 days ago
Indeed. No need to use "complex" features like RAII/RTTI/exceptions. Generally, I see features like classes, overloading and templates as "compatible" with C-style coding.
link