#ifndef ANGELSCRIPTDEBUGGER_BREAKPOINT_HPP #define ANGELSCRIPTDEBUGGER_BREAKPOINT_HPP #include #include struct Breakpoint { std::string Section; int32_t Line; bool operator==(const Breakpoint& other) const { return (Section == other.Section && Line == other.Line); } }; namespace std { template <> struct hash { std::size_t operator()(const Breakpoint& k) const { using std::hash; using std::size_t; using std::string; return ((hash()(k.Section) ^ (hash()(k.Line) << 1)) >> 1); } }; } #endif // ANGELSCRIPTDEBUGGER_BREAKPOINT_HPP