Skip to content

Commit

Permalink
Slightly more concise enable_if
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhbell committed Aug 2, 2023
1 parent b05c30d commit 59e6fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/teqp/algorithms/VLE_pure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ inline auto pure_trace_VLE(const teqp::cppinterface::AbstractModel& model, const
X(pure_trace_VLE)

#define X(f) template <typename TemplatedModel, typename ...Params, \
typename = typename std::enable_if<not std::is_base_of<teqp::cppinterface::AbstractModel, TemplatedModel>::value>::type> \
typename = typename std::enable_if<is_not_AbstractModel<TemplatedModel>::value>::type> \
inline auto f(const TemplatedModel& model, Params&&... params){ \
auto view = teqp::cppinterface::adapter::make_cview(model); \
const AbstractModel& am = *view.get(); \
Expand Down

0 comments on commit 59e6fda

Please sign in to comment.