Commit 1347cb14 authored by Paul's avatar Paul
Browse files

Formatting

parent 6d8d7d41
......@@ -84,10 +84,7 @@ struct program
friend std::ostream& operator<<(std::ostream& os, const program& p);
friend bool operator==(const program& x, const program& y);
friend bool operator!=(const program& x, const program& y)
{
return !(x == y);
}
friend bool operator!=(const program& x, const program& y) { return !(x == y); }
private:
std::unique_ptr<program_impl> impl;
......
......@@ -77,7 +77,7 @@ inline std::string to_string_range(const Range& r)
return ss.str();
}
template<class T>
template <class T>
inline std::string to_string(const T& x)
{
std::stringstream ss;
......
......@@ -191,10 +191,7 @@ argument program::eval(std::unordered_map<std::string, argument> params) const
return result;
}
bool operator==(const program& x, const program& y)
{
return to_string(x) == to_string(y);
}
bool operator==(const program& x, const program& y) { return to_string(x) == to_string(y); }
std::ostream& operator<<(std::ostream& os, const program& p)
{
......
......@@ -50,8 +50,7 @@ struct expression
// TODO: Remove rvalue references
template <class T, class U, class Operator>
expression<T, U, Operator>
make_expression(T&& rhs, U&& lhs, Operator)
expression<T, U, Operator> make_expression(T&& rhs, U&& lhs, Operator)
{
return {std::forward<T>(rhs), std::forward<U>(lhs)};
}
......
......@@ -27,6 +27,4 @@ void program_equality()
EXPECT(x == y);
}
int main() {
program_equality();
}
int main() { program_equality(); }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment