Hi,
I am getting an error while making a vector.

frame.h

#include <wx/wx.h>

class Frame : public wxPanel
{
public:
    Frame(wxPanel* parent, int xx, int yy);
    ~Frame();

private:
    int x;
    int y;
}

frame.cpp

#include "frame.h"

Frame::Frame(wxPanel* parent, int xx, int yy)
:wxPanel(parent)
{
    x = xx;
    y = yy;
}

Frame::~Frame()
{
}

in another wxPanel ,

I am creating a vector-

std::vector<Frame> vFrames;

And using it in a function-

FinalFrame::addFrame()
{
    vFrames.push_back(Frame(this, 20, 40));
}

And I am getting this error-
error: use of deleted function 'Frame::Frame(const Frame&)'

Is this related to wx or I am coding some stupid code.