We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02323e8 commit 0aa503eCopy full SHA for 0aa503e
src/entt/meta/meta.hpp
@@ -1582,7 +1582,7 @@ bool meta_any::set(const id_type id, Type &&value) {
1582
if(storage.has_value(type.info())) {
1583
return as_ref();
1584
} else if(*this) {
1585
- if(const auto &from = fetch_node(); from.conversion_helper && type.is_arithmetic() || type.is_enum()) {
+ if(const auto &from = fetch_node(); from.conversion_helper && (type.is_arithmetic() || type.is_enum())) {
1586
auto other = type.construct();
1587
const auto value = from.conversion_helper(nullptr, storage.data());
1588
other.fetch_node().conversion_helper(other.storage.data(), &value);
0 commit comments