This commit is contained in:
Michael Carlstrom 2024-12-05 22:20:34 -05:00
parent a53bf0efc8
commit adfed511e2

View File

@ -1335,8 +1335,7 @@ object object_or_cast(T &&o) {
template <typename D>
template <typename T>
str_attr_accessor object_api<D>::attr_with_type(const char *key) const {
static constexpr auto name = make_caster<T>::name;
annotations()[key] = name.text;
annotations()[key] = make_caster<T>::name.text;
return {derived(), key};
}
#endif