Topic: Who said in C++ there are no functions with different result types
Author: claus@faerber.muc.de (=?ISO-8859-1?Q?Claus_Andr=E9_F=E4rber?=)
Date: 1998/01/13 Raw View
Interesting point. But for performance reasons, it would be nice to have
at least the possibility to write overloaded functions with return types
of 'void', 'type_x' (and maybe 'const type_x'). Why construct a
temporary object as a return value if it's thrown away by the caller[1]?
Why make a mutable copy of an object if it's not changed anyway?
--
Claus Andr=E9 F=E4rber <http://www.muc.de/~cfaerber/> Fax: +49_8061_3361
PGP: ID=3D1024/527CADCD FP=3D12 20 49 F3 E1 04 9E 9E 25 56 69 A5 C6 A0 C=
9 DC
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]