Date: 2025-06-09 12:15:24
Score: 4.5
Natty:
Could you just use copy constructor (with placement new)?
Thank you. This is exactly what I want:
extern "C" void return_external_function_at(external_class *out){
new(out) external_class(external_function());
}
godbolt
Reasons:
- Blacklisted phrase (0.5): Thank you
- RegEx Blacklisted phrase (1): I want
- Probably link only (1):
- Low length (1):
- Has code block (-0.5):
- Self-answer (0.5):
- Single line (0.5):
- Low reputation (0.5):
Posted by: BZZZZ