foo const & vs. const foo &
- From: Jon Trowbridge <trow emccta com>
- To: The Guppi Mailing List <guppi-list gnome org>
- Subject: foo const & vs. const foo &
- Date: Thu, 15 Jul 1999 11:30:07 -0500
Since we've been discussing style concerning the pros and cons of
"unsigned", I've got another one for you. I've noticed that Asger
(and now Mikkel) write const references and pointers as
foo const &
foo const *
whereas everyone else I've ever seen (include Stroustrup and the
authors of the .h files distributed with egcs) would write the same
type as
const foo &
const foo *
What is the origin of/motivation for this alternative syntax? Is
there anything that makes it preferable to the more standard form?
-JT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]