tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.49k stars 418 forks source link

cell_reference.hpp:268:16: error: implicit instantiation of undefined template #486

Closed ARSanderson closed 2 years ago

ARSanderson commented 4 years ago

Hello,

A project I am working on uses xlnt and when build with OS X

Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: x86_64-apple-darwin16.7.0

I get the following:

In file included from /Projects/ShapeWorks/ShapeWorks/dependencies/build/xlnt/source/cell/cell_reference.cpp:27: /Projects/ShapeWorks/ShapeWorks/dependencies/build/xlnt/source/../include/xlnt/cell/cell_reference.hpp:268:16: error: implicit instantiation of undefined template 'std::__1::hash' return hash{}(x.row() | static_cast(x.column_index()) << 32); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3171:29: note: template is declared here template struct hash; ^ It would appear that hash is not defined explicitly because

"#include < functional >"

is missing.