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

Thrown by property_entries (<welder/bind_traits.hpp>) on an accessor-marked virtual member function: both Python rods dispatch overrides through a by-name attribute lookup, and a property object under that name would silently break the override protocol — rejected rather than bound subtly wrong. 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>) on an accessor-marked virtual member function: both Python rods dispatch overrides through a by-name attribute lookup, and a property object under that name would silently break the override protocol — rejected rather than bound subtly wrong.

Definition at line 198 of file diag.hpp.

Member Data Documentation

◆ what

const char* welder::diag::virtual_property_accessor::what
Initial value:
=
"welder: getter/setter marks on a VIRTUAL member function are not "
"supported (a property under the method's name breaks Python override "
"dispatch, which looks overrides up by name); bind it as a method "
"(drop the mark), or wrap the virtual in non-virtual accessors"

What went wrong and how to fix it.

Definition at line 200 of file diag.hpp.


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