Skip to content

Commit

Permalink
Make the type generic to allow for auto construction?
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhbell committed Jul 31, 2024
1 parent 99291b4 commit be8f628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/teqp/models/saft/correlation_integrals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ class JIntegral{
const JSidecar sidecar;
public:

JIntegral(const JSidecar& sidecar) : sidecar(sidecar) {};
JIntegral(const auto& sidecar) : sidecar(sidecar) {};

template<typename TType, typename RhoType>
auto get_J(const TType& Tstar, const RhoType& rhostar) const -> std::common_type_t<TType, RhoType>{
Expand Down Expand Up @@ -529,7 +529,7 @@ class KIntegral{
const KSidecar sidecar;
public:

KIntegral(const KSidecar& sidecar) : sidecar(sidecar) {};
KIntegral(const auto& sidecar) : sidecar(sidecar) {};

template<typename TType, typename RhoType>
auto get_K(const TType& Tstar, const RhoType& rhostar) const -> std::common_type_t<TType, RhoType>{
Expand Down

0 comments on commit be8f628

Please sign in to comment.