|
rippled
|
Wrapper that captures std::source_location when implicitly constructed. More...
#include <Env.h>

Public Member Functions | |
| WithSourceLocation (T v, std::source_location l=std::source_location::current()) | |
Public Attributes | |
| T | value |
| std::source_location | loc |
Wrapper that captures std::source_location when implicitly constructed.
This solves the problem of combining std::source_location with variadic templates. The std::source_location default argument is evaluated at the call site when the wrapper is constructed via implicit conversion.
This is a template struct that holds the value directly, allowing implicit conversion without template argument deduction issues via CTAD.
| xrpl::test::jtx::WithSourceLocation< T >::WithSourceLocation | ( | T | v, |
| std::source_location | l = std::source_location::current() |
||
| ) |
| T xrpl::test::jtx::WithSourceLocation< T >::value |
| std::source_location xrpl::test::jtx::WithSourceLocation< T >::loc |