Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Update README.md / Fix a bug in README demo code #327

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions guide/exp-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ struct mul{
// and put its own type into the template argument
template<typename OP, typename TLhs, typename TRhs>
struct BinaryMapExp: public Exp<BinaryMapExp<OP, TLhs, TRhs> >{
const TLhs& lhs;
const TRhs& rhs;
const TLhs lhs;
const TRhs rhs;
BinaryMapExp(const TLhs& lhs, const TRhs& rhs)
:lhs(lhs), rhs(rhs) {}
// evaluation function, evaluate this expression at position i
Expand Down