Skip to content

Commit

Permalink
Merge pull request #7 from artemp/const_correctness_part2
Browse files Browse the repository at this point in the history
changing const keyword position to 'T const &'
  • Loading branch information
artemp committed Feb 13, 2014
2 parents 7423b70 + f6677d1 commit f8ff1da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ struct printer
public:
explicit printer(Out & out)
: out_(out) {}
printer& operator=(const printer&) = delete;
printer& operator=(printer const &) = delete;

// visitor
template <typename T>
void operator()(const T& operand) const
void operator()( T const & operand) const
{
out_ << operand;
}
Expand Down

0 comments on commit f8ff1da

Please sign in to comment.