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

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.27.0
    • build

    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

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

            Dates

              Created:
              Updated:
              Resolved: