Re:On the evolution of programming style: How far C++ has mo...
by alexchamberlain on Monday March 26, 2012 @12:23PM
(#3757370)
What's std::pair if it isn't a class?
[ Parent
| on HN ]
Re:On the evolution of programming style: How far C++ has mo...
by ajross on Monday March 26, 2012 @12:43PM
(#3757470)
Surely alextgordon's point was that defining a solution in terms of a class where a function was more appropriate was bad, not that use of existing abstract types is to be avoided.
Re:On the evolution of programming style: How far C++ has mo...
by alextgordon on Monday March 26, 2012 @12:33PM
(#3757421)
There's nothing inherently wrong with classes. I use classes occasionally. But if you don't need to use one for everything. C++ isn't Java.
Re:On the evolution of programming style: How far C++ has mo...
by YogSothoth on Monday March 26, 2012 @01:23PM
(#3757680)
a struct ;-) ...
http://www.cplusplus.com/reference/std/utility/pair/
Re:On the evolution of programming style: How far C++ has mo...
by alexchamberlain on Monday March 26, 2012 @03:07PM
(#3758165)
I was waiting for that! :-P