XRPLF / clio

An XRP Ledger API Server
https://xrpl.org
ISC License
57 stars 48 forks source link

Use concept instead of static_assert in Async framework #1346

Open godexsoft opened 2 months ago

godexsoft commented 2 months ago

Summary

static_assert(not std::is_same_v<RetType, std::any>);

can be rewritten using a requires clause or a concept.

Motivation

Better output on error.