5#include "errors/error_ptr.hpp"
6#include "errors/source_location.hpp"
17 make(
const make &) =
delete;
18 make(make &&) =
delete;
19 make &operator=(
const make &) =
delete;
20 make &operator=(make &&) =
delete;
23 template <
typename... Args>
24 struct with :
public error_ptr {
26 : error_ptr(std::make_unique<E>(std::move(args)...))
33 template <
typename... Args>
34 with(Args...) -> with<Args...>;
47 make &operator=(
const make &) =
delete;
52 template <
typename... Args>
68 std::move(location))))
76 template <
typename... Args>
77 with(Args...) -> with<Args...>;
Smart pointer to errors::error with some utility member functions.
Definition error_ptr.hpp:13
with(Args... args, source_location location=source_location::current())
Create an error.
Definition make.hpp:63
The source location.
Definition source_location.hpp:46
static constexpr source_location current(const char *fileName="unsupported", const char *functionName="unsupported", const uint_least32_t lineNumber=0, const uint_least32_t columnOffset=0) noexcept
Returns the current source location.
Definition source_location.hpp:70