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

Errors when using stout headers with clang

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 0.17.0
    • None
    • build
    • Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

    Description

      Both, stout/lambda.hpp as well as stout/memory.hpp are missing the includes of the respective standard C++ library headers on C++11 compilers.

      These problems do not pop up in the current mesos master as these headers are always included after some standard library headers.

      error: use of undeclared identifier 'std'
      error: expected namespace name

      It just popped up in one part of the project I am currently working on as that does not include standard headers before including stout/lambda.hpp.

      Attachments

        Activity

          People

            tillt Till Toenshoff
            tillt Till Toenshoff
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: