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 » U++ Library support » U++ Core » C++11: Vector is missing copy contructor/assignment operator (Compiling for C++11 with gcc 4.8 or newer fails)
Re: C++11: Vector is missing copy contructor/assignment operator [message #43175 is a reply to message #43173] Thu, 29 May 2014 07:51 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
You must have missed "big change of pick semantics in C++ 11" topic Smile

See current documentation.

The correct code for C++11 now is

#include <Core/Core.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
	Vector<int> v;
	Vector<int> r = pick(v);

	VectorMap<int,String> vm;
	VectorMap<int,String> rvm = pick(vm);

	Vector<String> rv = pick(vm.GetValues());
}


If you have a lot of code requiring old behaviour, I might consider some compilation flag to force the old behaviour. Anyway, it took only about 2 hours to fix all of U++...

[Updated on: Thu, 29 May 2014 07:51]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unterminated processing info in XmlParser
Next Topic: Is XML compression possible by U++ library call?
Goto Forum:
  


Current Time: Mon Jun 09 06:58:04 CEST 2025

Total time taken to generate the page: 0.03327 seconds