Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Dave Abrahams <dave@boostpro.com> |
|---|---|
| Newsgroups | comp.std.c++ |
| Subject | Re: Proposal: constexpr, non-const member functions |
| Date | 2011-11-08 14:45 -0800 |
| Organization | unknown |
| Message-ID | <m2r51i1i55.fsf@boostpro.com> (permalink) |
| References | <46713.10.0.7.178.1320718071.squirrel@webmail.secure.aluminati.net> |
on Tue Nov 08 2011, "Richard Smith"<richard-AT-metafoo.co.uk> wrote:
> Since C++11 is already out of the gate, it's too late to remove the 'constexpr
> implies const' rule, so instead we could consider a syntax like this:
>
> constexpr T&get() mutable { return v; }
>
> Does this seem like a useful extension?
I don't know whether the intent of your proposal makes sense (haven't
given it much thought) but in principle there's never any impediment to
making a previously-illegal usage legal, so this might not need new syntax.
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Next in thread | Find similar
Proposal: constexpr, non-const member functions "Richard Smith"<richard@metafoo.co.uk> - 2011-11-08 11:32 -0800
Re: Proposal: constexpr, non-const member functions Dave Abrahams <dave@boostpro.com> - 2011-11-08 14:45 -0800
Re: Proposal: constexpr, non-const member functions Daniel Krügler <daniel.kruegler@googlemail.com> - 2011-11-08 14:47 -0800
Re: Proposal: constexpr, non-const member functions Marc <marc.glisse@gmail.com> - 2011-11-08 14:47 -0800
Re: Proposal: constexpr, non-const member functions Daniel Krügler <daniel.kruegler@googlemail.com> - 2011-11-09 21:54 -0800
Re: Proposal: constexpr, non-const member functions Daniel Krügler<daniel.kruegler@googlemail.com> - 2011-11-09 23:14 -0800
csiph-web