mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
fixing templates for broken windows hash functions
This commit is contained in:
parent
1e8c04be8e
commit
3588d4a1ca
|
@ -24,6 +24,16 @@ Revision History:
|
|||
#include "iz3mgr.h"
|
||||
#include "iz3scopes.h"
|
||||
|
||||
namespace hash_space {
|
||||
template <>
|
||||
class hash<func_decl *> {
|
||||
public:
|
||||
size_t operator()(func_decl * const &s) const {
|
||||
return (size_t) s;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/* Base class for interpolators. Includes an AST manager and a scoping
|
||||
object as bases. */
|
||||
|
||||
|
@ -180,17 +190,6 @@ class iz3base : public iz3mgr, public scopes {
|
|||
|
||||
};
|
||||
|
||||
namespace hash_space {
|
||||
template <>
|
||||
class hash<iz3mgr::symb> {
|
||||
public:
|
||||
size_t operator()(const iz3mgr::symb &s) const {
|
||||
return (size_t) s;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue