23 lines
469 B
C++
23 lines
469 B
C++
#pragma once
|
|
|
|
#include "lib/utils/ValueWrapper.h"
|
|
#include <string>
|
|
|
|
namespace bts {
|
|
namespace qbus {
|
|
class TableTag {};
|
|
typedef utils::ValueWrapper<TableTag,std::string> TableID;
|
|
TableID make_table_id();
|
|
}}
|
|
|
|
// yeah, this is crazy, but that's how you do it.
|
|
namespace std {
|
|
template <>
|
|
struct hash<bts::qbus::TableID>
|
|
{
|
|
std::size_t operator()(const bts::qbus::TableID& k) const {
|
|
return std::hash<typename bts::qbus::TableID::Value> () (k.value());
|
|
}
|
|
};
|
|
}
|