unary_function error

390 views
Skip to first unread message

S. M. Mallikarjunaiah

unread,
Jul 6, 2024, 2:27:49 PM7/6/24
to deal.II User Group
Dear all,

I am using the deal.II app on Mac Sonoma 14.5 and Xcode 15.4, clang 15.0 and getting the following error:
----------------------------------------------------------------------------------------------------------

/Applications/deal.II.app/Contents/Resources/Libraries/include/boost/container_hash/hash.hpp:132:33: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?

        struct hash_base : std::unary_function<T, std::size_t> {};

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here

using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;

----------------------------------------------------------------------------------------------------------

I installed a newer boost and then reinstalled the deal.II app, but I am still getting the same error. I would greatly appreciate any help fixing this error. Thank you very much.

Best,

Mallikarjuna 


James Shi

unread,
Jul 7, 2024, 1:36:04 AM7/7/24
to deal.II User Group
There's an issue about this: https://github.com/dealii/dealii/issues/16662

I'm using apple silicon macOS with clang too, I installed dealii master branch by candi, and everything works fine.

Reply all
Reply to author
Forward
0 new messages