Unverified Commit 26aabd2a authored by Umang Yadav's avatar Umang Yadav Committed by GitHub
Browse files

Add missing specialization for the `nullptr` for the hash function (#1824)

#1791 Added hash function for value class. It uses the Visit function and has specialization for the bool_type and <vector> type but was missing specialization for the nullptr. Nullptr caused compilation issues for RHEL, SLES and CentOS.
parent 25af8710
......@@ -22,7 +22,7 @@
* THE SOFTWARE.
*/
#include <fstream>
#include <filesystem>
#include <migraphx/filesystem.hpp>
#include <migraphx/gpu/compiler.hpp>
#include <migraphx/make_op.hpp>
#include <migraphx/gpu/context.hpp>
......
......@@ -527,6 +527,9 @@ std::size_t value_hash(const std::string& key, const T& x)
hash_combine(h, x);
return h;
}
std::size_t value_hash(const std::string& key, std::nullptr_t) { return hash_value(key); }
std::size_t value_hash(const std::string& key, const std::vector<value>& x)
{
std::size_t h = hash_value(key);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment