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

Replace forward declarations with forwarding headers

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • None

    Description

      Use of "forward declarations", e.g. "class Client;" adds brittleness to the codebase, because changing a class to a template means changing a potentially enormous number of files, or adding otherwise unnecessary scaffolding. It is better to collect such declarations into specialized headers, like "client_fwd.h", so they exist in just one place.

      Attachments

        Activity

          People

            nathan.myers Nathan Myers
            nathan.myers Nathan Myers
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: