This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#include "ConstString.hpp"
|
||||
|
||||
ArbUt::__ConstStringCharHolder* ArbUt::CaseInsensitiveConstString::__emptyString =
|
||||
new __ConstStringCharHolder("", 0);
|
||||
ArbUt::__ConstStringCharHolder* ArbUt::CaseInsensitiveConstString::__emptyString = new __ConstStringCharHolder("", 0);
|
||||
ArbUt::__ConstStringCharHolder* ArbUt::ConstString::__emptyString = new __ConstStringCharHolder("", 0);
|
||||
@@ -66,7 +66,6 @@ namespace ArbUt {
|
||||
|
||||
const std::vector<ValueT*>& GetStdList() const { return _vector; }
|
||||
std::vector<ValueT*>& GetStdList() { return _vector; }
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#endif
|
||||
|
||||
#define ConstStringCore(name, hashFunction) \
|
||||
namespace ArbUt { \
|
||||
namespace ArbUt { \
|
||||
class name { \
|
||||
private: \
|
||||
__ConstStringCharHolder* _str; \
|
||||
@@ -112,11 +112,11 @@
|
||||
} \
|
||||
\
|
||||
namespace std { \
|
||||
template <> struct hash<ArbUt::name> { \
|
||||
constexpr std::size_t operator()(ArbUt::name const& s) const noexcept { return s.GetHash(); } \
|
||||
template <> struct hash<ArbUt::name> { \
|
||||
constexpr std::size_t operator()(ArbUt::name const& s) const noexcept { return s.GetHash(); } \
|
||||
}; \
|
||||
template <> struct hash<ArbUt::name##_Literal> { \
|
||||
constexpr std::size_t operator()(ArbUt::name##_Literal const& s) const noexcept { return s.GetHash(); } \
|
||||
template <> struct hash<ArbUt::name##_Literal> { \
|
||||
constexpr std::size_t operator()(ArbUt::name##_Literal const& s) const noexcept { return s.GetHash(); } \
|
||||
}; \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user