Compilation fails with boost 1.62

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 3.4.11, 3.6.0-rc0
    • Affects Version/s: 3.4.9
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • v3.4
    • Hide

      scons mongod --use-system-boost --use-system-pcre --use-system-snappy --use-system-zlib --disable-warnings-as-errors

      Show
      scons mongod --use-system-boost --use-system-pcre --use-system-snappy --use-system-zlib --disable-warnings-as-errors
    • Platforms 2017-10-02
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Compilation with Boost 1.62 fails due to this compile error:

      src/mongo/db/fts/unicode/string.cpp: In static member function 'static bool mongo::unicode::String::substrMatch(const string&, const string&, mongo::unicode::String::SubstrMatchOptions, mongo::unicode::CaseFoldMode)':
      src/mongo/db/fts/unicode/string.cpp:277:80: error: no match for 'operator!=' (operand types are 'std::pair<const char*, const char*>' and 'mongo::StringData::const_iterator {aka const char*}')
           return boost::algorithm::boyer_moore_search(
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                
                      haystack.begin(), haystack.end(), needle.begin(), needle.end()) != haystack.
      

      See attachment for the full backtrace

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Jelle van der Waa
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: