Silly mistake in C++

Правка en1, от 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?

Теги mistakes, bugs, bugs_everywhere

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский I_love_tigersugar 2016-03-20 07:12:01 391 Initial revision (published)