Код: Выделить всё
#include
#include
#include
class constant_param
{
private:
double value_;
public:
constant_param(const double& value) : value_(value) {}
void tilt(const double epsilon)
{
value_ += epsilon;
}
void print()
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79717190/member-variables-not-updating-when-shared-pointer-and-object-wrap-them[/url]