We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a6f4cd commit c14d02cCopy full SHA for c14d02c
loader/include/Geode/utils/cocos.hpp
@@ -1225,7 +1225,12 @@ namespace geode::cocos {
1225
cocos2d::CCDictElement* m_ptr;
1226
1227
std::pair<K, T*> operator*() {
1228
- if constexpr (std::is_same_v<K, std::string> || std::is_same_v<K, gd::string>) {
+ if constexpr (
1229
+ std::is_same_v<K, std::string>
1230
+ || std::is_same_v<K, gd::string>
1231
+ || std::is_same_v<K, std::string_view>
1232
+ || std::is_same_v<K, const char*>)
1233
+ {
1234
return {m_ptr->getStrKey(), static_cast<T*>(m_ptr->getObject())};
1235
}
1236
else {
0 commit comments