Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-7215

Add Swig macro for safe return-member-as-reference

    Details

    • Type: Story
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: utils
    • Templates:
    • Story Points:
      1

      Description

      See https://community.lsst.org/t/swig-bindings-for-member-functions-returning-a-reference/1022

      We should also audit our code for %returnCopy use to see if we can replace it by %returnReference.

      This may be useful to do before DM-3549, where I happen to know we're using %returnCopy precisely for this reason. On the other hand, if we do decide to switch to Pybind11, this obviously becomes a moot point.

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  jbosch Jim Bosch
                  Watchers:
                  Jim Bosch, John Swinbank, Tim Jenness
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel