Reputation
Next privilege 125 Rep.
Vote down
Badges
1
Newest
 Supporter
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Feb
11
comment Are utility classes with nothing but static members an anti-pattern in C++?
@cbamber85: That is not entirely true. You'd get even better encapsulation by putting "private" functions in the implementation file, so the users don't get to see even the private declaration.
Nov
27
comment Template Functions and Function templates in C++
I think "function template" and "class template" are the official terms, though. A "function template" is not really a function as "template function" would imply.
Nov
19
awarded  Supporter
Nov
16
comment Is it bad idea to use flag variable to search MAX element in array?
The first snippet seems to be the unfortunate result of using foreach, so you can't start from the second item (although it should be possible?). - In C++, you could also trivially throw an exception if _First == _Last initially (except C++ folks don't like throwing exceptions around for things, which you could have just as well tested yourself before calling the function (or after obtaining the result).