Skip to content
Snippets Groups Projects
Commit b549247c authored by Ian Bell's avatar Ian Bell
Browse files

The last reference fix

parent f85e97fa
Branches inv/fom-costs2
No related tags found
No related merge requests found
......@@ -264,8 +264,8 @@ namespace teqp {
class ReducingTermContainer {
private:
const std::variant<Args...> term;
auto const& get_Tc() const { return std::visit([](const auto& t) { return std::cref(t.Tc); }, term); }
auto const& get_vc() const { return std::visit([](const auto& t) { return std::cref(t.vc); }, term); }
auto get_Tc() const { return std::visit([](const auto& t) { return std::cref(t.Tc); }, term); }
auto get_vc() const { return std::visit([](const auto& t) { return std::cref(t.vc); }, term); }
public:
const Eigen::ArrayXd Tc, vc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment