Boost::uuids::uuid как ключ в std::unordered_map?C++

Программы на C++. Форум разработчиков
Anonymous
Boost::uuids::uuid как ключ в std::unordered_map?

Сообщение Anonymous »

Я использую clang (CXX='clang++ -std=c++11 -stdlib=libc++') в Mac OS X с версией Boost 1.53.0.

Я хочу использовать uuid в качестве ключей в unordered_map, но получаю следующие ошибки:

Код: Выделить всё

/usr/bin/../lib/c++/v1/type_traits:748:38: error: implicit instantiation of undefined template
'std::__1::hash'
: public integral_constant {};
^
/usr/bin/../lib/c++/v1/unordered_map:327:54: note: in instantiation of template class
'std::__1::is_empty' requested here
template 

Подробнее здесь: [url]https://stackoverflow.com/questions/16471051/boostuuidsuuid-as-a-key-in-stdunordered-map[/url]

Вернуться в «C++»