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

Thrown by validate_return_policy (<welder/reflect.hpp>) — every rod runs it at its per-overload bind site — when a reference-category return_policy meets a by-value return. More...

#include <welder/diag.hpp>

Public Attributes

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

Detailed Description

Thrown by validate_return_policy (<welder/reflect.hpp>) — every rod runs it at its per-overload bind site — when a reference-category return_policy meets a by-value return.

Definition at line 41 of file diag.hpp.

Member Data Documentation

◆ what

const char* welder::diag::dangling_return_policy::what
Initial value:
=
"welder: return_policy requests a reference-category policy "
"(rv::reference / rv::reference_internal) on a callable returning BY "
"VALUE - the target-language view would reference a destroyed "
"temporary; drop the policy, or return a pointer/reference"

What went wrong and how to fix it.

Definition at line 43 of file diag.hpp.


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