Silly mistake in C++

Revision en1, by I_love_tigersugar, 2016-03-20 07:12:01

The easy problem in SRM 685 is the N-th time I failed because of using __builtin_popcount instead of __builtin_popcountll. As a result, a new line has been added to my template code:

#define __builtin_popcount __builtin_popcountll

Btw, does anyone have an idea why C++ doesn't merge the 2 above functions into one to avoid such silly mistakes?

Tags mistakes, bugs, bugs_everywhere


  Rev. Lang. By When Δ Comment
en1 English I_love_tigersugar 2016-03-20 07:12:01 391 Initial revision (published)