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

Thrown by property_entries (<welder/bind_traits.hpp>) when a [[=welder::getter]] sits on a function that is not a getter shape: it must be a const member function taking no parameters and returning a value. 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 [[=welder::getter]] sits on a function that is not a getter shape: it must be a const member function taking no parameters and returning a value.

Definition at line 115 of file diag.hpp.

Member Data Documentation

◆ what

const char* welder::diag::malformed_getter::what
Initial value:
=
"welder: a [[=welder::getter]] must mark a CONST member function with "
"no parameters and a non-void return - a property read takes nothing "
"and must not mutate; move side effects to a method, or drop the mark"

What went wrong and how to fix it.

Definition at line 117 of file diag.hpp.


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