Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 11
    Move every implementation of MinHeap member functions in a .cpp file or make them inline. Commented Jun 11, 2018 at 14:15
  • Have you tried one of the following: - move the declarations out of the header into a *.cpp file, or - removing the definitions and moving the declarations up to be in the correct visibility, i.e. MinHeap::MinHeap(...) becomes just MinHeap(...) under public:, inlined or header only. Commented Jun 11, 2018 at 14:17
  • @O'Neil Thanks I moved all members to .cpp file Commented Jun 11, 2018 at 14:44