Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8314644

Change "Rvalue references and move semantics" into an accepted feature

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot

      Rvalue and move semantics should be considered a viable part of programming Hotspot. These concepts allow us to not only write more performant code but also more correct code. An example of the latter is when a class needs unique ownership of its dynamically allocated resources and so has removed its copy assignment/constructor but it needs to be moved. In today's Hotspot this has to be expressed in a roundabout way which is prone to bugs, such as having a method that generates a copy which must not be accidentally misused. Move semantics solve these issues.

            jsjolen Johan Sjölen
            jsjolen Johan Sjölen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: