Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24299

Add template function in util/ that casts to std::unique_ptr<Derived> from std::unique_ptr<Base>

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • None
    • Developer Tools

    Description

      A template function should exist in util/ that casts objects of type std::unique_ptr<Base> to std::unique_ptr<Derived>.

      We could consider extending checked_cast for this purpose.

      Attachments

        Activity

          People

            backlog-server-devtools DO NOT USE - Backlog - Dev Tools
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: