3#include <alpaqa/export.h>
5#include <nlohmann/json_fwd.hpp>
24 template <
class T_actual,
class A>
34 using std::invalid_argument::invalid_argument;
void get_param(const T &t, json &s)
Get the first argument as a JSON object j.
void set_param(T &t, const json &j)
Update/overwrite the first argument based on the JSON object j.
Function wrapper to set attributes of a struct, type-erasing the type of the attribute.
std::function< void(T &, const json &)> set
std::function< void(const T &, json &)> get
attribute_accessor(A T_actual::*attr)
Custom parameter parsing exception.
std::vector< std::string > backtrace