4

This page on the language differences between C++17 and C++14 states that

The meaning of prvalue and glvalue has been revised, prvalues are no longer objects, but merely “initialization”.

I understand this has something to do with mandatory copy elision. My question is: precisely how have the semantics of prvalues and glvalues changed?

melpomene
  • 84,125
  • 8
  • 85
  • 148
ThomasMcLeod
  • 7,603
  • 4
  • 42
  • 80
  • They've changed in whatever ways were necessary for [guaranteed elision to work](https://stackoverflow.com/questions/38043319/how-does-guaranteed-copy-elision-work). – Nicol Bolas Aug 19 '17 at 16:35
  • @NicolBolas are you saying the question is a dupplicate? – ThomasMcLeod Aug 19 '17 at 16:38
  • 1
    http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0135r1.html – Holt Aug 19 '17 at 16:44
  • @ThomasMcLeod: I'm saying it could be. I wasn't certain enough to dupe-hammer it. – Nicol Bolas Aug 19 '17 at 16:57
  • @NicolBolas Well, that's the sole purpose for which they have changed. Am I wrong? In this case, that's a dup. The fact that the titles differ doesn't make it a different question. – skypjack Aug 19 '17 at 17:04
  • Possible duplicate of [How does guaranteed copy elision work?](https://stackoverflow.com/questions/38043319/how-does-guaranteed-copy-elision-work) – Conrad Parker Aug 29 '17 at 03:04

0 Answers0