Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion include/ponder/detail/propertyfactory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,16 @@ struct AccessTraits<T, typename std::enable_if<ponder_ext::ArrayMapper<T>::isArr
* User objects.
* - I.e. Registered classes.
* - Enums also use registration so must differentiate.
* - Pointer to basic types, such as std::string, integers and floats
* also use registration. They must differentiate also.
*/
template <typename T>
struct AccessTraits<T,
typename std::enable_if<hasStaticTypeDecl<T>() && !std::is_enum<T>::value>::type>
typename std::enable_if<hasStaticTypeDecl<T>() &&
!std::is_same<T, std::string>::value &&
!std::is_integral<T>::value &&
!std::is_floating_point<T>::value &&
!std::is_enum<T>::value>::type>
{
static constexpr PropertyAccessKind kind = PropertyAccessKind::User;

Expand Down