Sol2: Failure to build on MacOS 10.15 due to a missing include of unordered_map.

Created on 1 Oct 2020  路  1Comment  路  Source: ThePhD/sol2

When using Azure Pipelines to build Sol on MacOS 10.15 using AppleClang 11.0.3.11030032, we're experiencing a build error along the lines of:

In file included from /Users/runner/work/1/s/Phoenix/ThirdParty/sol2/include/sol/usertype.hpp:29:
/Users/runner/work/1/s/Phoenix/ThirdParty/sol2/include/sol/usertype_storage.hpp:288:8: error: no template named 'unordered_map' in namespace 'std'
                std::unordered_map<string_view, index_call_storage> string_keys;
                ~~~~~^
/Users/runner/work/1/s/Phoenix/ThirdParty/sol2/include/sol/usertype_storage.hpp:289:8: error: no template named 'unordered_map' in namespace 'std'
                std::unordered_map<reference, reference, reference_hash, reference_equals> auxiliary_keys;
                ~~~~~^

It looks like it's relying on an implicit import from another file, and probably didn't work on Mac 馃檮.

Full Build Log -> https://pastebin.com/bzUh0XE3

Thanks in advance if this gets fixed! :)

Bug.Derp

Most helpful comment

Fixed.

>All comments

Fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

squeek502 picture squeek502  路  3Comments

shohnwal picture shohnwal  路  4Comments

Erwsaym picture Erwsaym  路  4Comments

cgloeckner picture cgloeckner  路  3Comments

squeek502 picture squeek502  路  4Comments