ok so i have,
But the .push_back(tempData) causes a segfault. The backtrace brings me to the deque header, and points atCode:class BillData
{
private:
wxString Name;
wxString Cost;
wxDateTime DueDate;
public:
BillData(wxString tempName, wxString tempCost, wxDateTime tempDate);
~BillData() {};
};
class BillList
{
private:
std::deque <BillData> theList;
public:
void InsertBill(wxString tempName, wxString tempCost, wxDateTime tempTime);
BillList() {};
~BillList(){};
};
void BillList::InsertBill(wxString tempName, wxString tempCost, wxDateTime tempTime){
BillData tempData(tempName, tempCost, tempTime);
theList.push_back(tempData);
}
Code:if (this->_M_impl._M_finish._M_cur != this->_M_impl._M_finish._M_last - 1)