welder 0.1.0
Bindings for annotated C++ types, from C++26 reflection
Loading...
Searching...
No Matches
welder::diag::property_name_collision Struct Reference

Thrown by property_entries (<welder/bind_traits.hpp>) when a resolved property name collides with a bound data member or a (non-accessor) method of the same class surface. More...

#include <welder/diag.hpp>

Public Attributes

const char * what
 What went wrong and how to fix it.

Detailed Description

Thrown by property_entries (<welder/bind_traits.hpp>) when a resolved property name collides with a bound data member or a (non-accessor) method of the same class surface.

Names are compared by their case-normalized word sequence — convention-insensitively — because a property and a member differing only in spelling convention collide under any styled binding.

Definition at line 212 of file diag.hpp.

Member Data Documentation

◆ what

const char* welder::diag::property_name_collision::what
Initial value:
=
"welder: a property's name collides with a bound data member or "
"method of the same class (compared word-wise, so spelling-convention "
"variants count); rename the property with an explicit "
"getter(\"name\"), or exclude the colliding member"

What went wrong and how to fix it.

Definition at line 214 of file diag.hpp.


The documentation for this struct was generated from the following file: