Skip to content

Commit

Permalink
fix: added headers
Browse files Browse the repository at this point in the history
  • Loading branch information
charliekush committed Oct 20, 2024
1 parent 1cb7e07 commit 7c8ad47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/calculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <cmath>


std::shared_ptr<Number> Arithmetic::performOperation(const operation& op,
numPtr left, numPtr right, bool isDivision = false)
{
Expand Down
2 changes: 1 addition & 1 deletion src/calculator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Arithmetic
typedef std::shared_ptr<Number> numPtr;
typedef std::function<double(double, double)> operation;
public:
static numPtr performOperation(const operation& op, numPtr left,
static numPtr performOperation(const Operation& op, numPtr left,
numPtr right, bool isDivision);
static numPtr power(nodePtr operatorNode, numPtr left, numPtr right);
static numPtr multiply(nodePtr operatorNode, numPtr left, numPtr right);
Expand Down
1 change: 1 addition & 0 deletions src/expression_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "token.hpp"

#include <memory>
#include <vector>

class ExpressionNode : public std::enable_shared_from_this<ExpressionNode>
{
Expand Down

0 comments on commit 7c8ad47

Please sign in to comment.