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

SWIG 3 handles bools correctly, so a typemap in p_lsstSwig.i is no longer needed

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: utils
    • Labels:
      None
    • Templates:
    • Team:
      Alert Production

      Description

      utils p_lsstSwig.i contains a special typemap which forces python arguments to be truly bools (True or False) when calling C++ functions with bool arguments. That code is no longer required by SWIG 3.0, according to this release note:

      2014-03-06: wsfulton
      [Python] Change in default behaviour wrapping C++ bool. Only a Python True or False
      will now work for C++ bool parameters. This fixes overloading bool with other types.
      Python 2.3 minimum is now required for wrapping bool.
      ...

        Attachments

          Activity

            People

            • Assignee:
              rowen Russell Owen
              Reporter:
              rowen Russell Owen
              Reviewers:
              Jim Bosch
              Watchers:
              Jim Bosch, Kian-Tat Lim, Russell Owen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel