ComPrivateInclude.cpp 325 Bytes
Newer Older
Valentin Platzgummer's avatar
Valentin Platzgummer committed
1
#include "ros_bridge/include/ComPrivateInclude.h"
Valentin Platzgummer's avatar
Valentin Platzgummer committed
2 3 4 5 6 7 8 9 10 11 12 13
#include <functional>

std::size_t ROSBridge::ComPrivate::getHash(const std::string &str)
{
    std::hash<std::string> hash;
    return hash(str);
}

std::size_t ROSBridge::ComPrivate::getHash(const char *str)
{
    return ROSBridge::ComPrivate::getHash(std::string(str));
}