template<typename S>
class arg_router::policy::error_name_t< S >
Represents the error name of an argument.
An error name is a label given to a node such that when it throws an error, this label is used to represent the node. This policy is typically not for use by users, it is for node developers to tune their node's representation in error output.
If using C++17 then use the template variable helper with the S_
macro; for C++20 and higher, use the constructor directly with a compile-time string literal:
constexpr
auto a = ar::policy::error_name<
S_(
"hello")>;
constexpr auto b = ar::policy::error_name_t{"hello"_S};
- Note
- Error names must not be empty
- Template Parameters
-
Definition at line 27 of file error_name.hpp.