Returning constant built in types
Is there any use for methods returning constant built in types?
Thank you
[82 byte] By [
l00p1n6] at [2007-11-20 11:47:10]

# 1 Re: Returning constant built in types
When returning by value, no, it's pretty pointless. The copy constructor will be used to create a non-const version anyway.
When returning by reference or returning pointers, then it can be very useful.