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>

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None

      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.

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

              Created:
              Updated:
              Resolved: