not inline function warning
im getting this warning:
C:\CS240\BinarySearch.h 12: Functions taking class-by-value argument(s) are not expanded inline in function TreeNode::TreeNode(string,TreeNode *,TreeNode *)
heres the class
Code:
class TreeNode
{
public:
TreeNode() {}
TreeNode(string nodeItem, TreeNode *left = NULL, TreeNode *right = NULL):data(nodeItem),leftLink(left), rightLink(right){}
friend class BST;
private:
string data;
TreeNode *leftLink, *rightLink;
};//end TreeNode class
how do i get rid of that warning and what does it mean?