Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-4183

Move operator<< definitions to .cpp files and include <iosfwd> in .hpp where possible.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.27.0
    • Component/s: build
    • Labels:

      Description

      We often include complex headers like <ostream> in ".hpp" files to define operator<<() inline (e.g. "mesos/authorizer/authorizer.hpp"). Instead, we can move definitions to corresponding ".cpp" files and replace stream headers with iosfwd, for example, this is partially done for URI in "mesos/uri/uri.hpp".

        Attachments

          Activity

            People

            • Assignee:
              alexr Alex R
              Reporter:
              alexr Alex R
              Shepherd:
              Michael Park
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: