Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Issues using 2015.2 version
Re: Issues using 2015.2 version [message #45928 is a reply to message #45926] Wed, 27 January 2016 21:10 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
mirek wrote on Wed, 27 January 2016 07:27
Hi,

I would rather recommend fixing the code. Could you please show me the example of code that is causing the problem?


Here it is one:

class ReadExcelDlg : public WithReadExcel<TopWindow> {
	typedef ReadExcelDlg CLASSNAME;
	OfficeSheet sheet;
	void MakeList();
	void SaveDetailRecord(int count, int idteam, Vector<String> p);
	int  SaveMasterRecord(Vector<String> t);
public:
	bool updated;
	void SetTournamentDir( String dir);
	void ReadSheetDetail();
	ReadExcelDlg();
};
// code snippet

		Vector<String> t;
                //...
		int idteam = SaveMasterRecord( t); <--- error C2280


another

class Pair : Moveable<Pair> {
public:
	int idw, idb;
	String ToString() const { return AsString(idw) + ' ' + AsString(idb); }
	Pair(int idw, int idb) : idw(idw), idb(idb) {}
	Pair() {}
};

class SortPairing { 
	Vector<Pair> pairs;
	int comppair(int j1, int j2);
 public:
	Vector<Pair> SortPairs(Vector<Pair> pairing);
	SortPairing() {}
	~SortPairing(){;}
};

 	//code snippet
        SortPairing S, pairs;
        //...
  	Vector<Pair> sortedPairing;   
        sortedPairing = S.SortPairs(pairs);  <--- error C2280


There are several of this kind that appear when Vector<something> is passed in a function.
With non C11 everything worked without complain.

Thanks!
Luigi

[Updated on: Wed, 27 January 2016 21:14]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Empty Template vs CtrlLib application with main window
Next Topic: Problem in example code
Goto Forum:
  


Current Time: Mon May 13 08:40:35 CEST 2024

Total time taken to generate the page: 0.01888 seconds