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 » stl-compatibility
Re: stl-compatibility [message #39720 is a reply to message #39674] Sat, 20 April 2013 18:59 Go to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
It should be now fixed, except Segtor, which is totally obsolete...

This now compiles:

#include <Core/Core.h>

using namespace Upp;

template <class T>
void Check()
{
	T a;
	std::includes(a.begin(), a.end(), a.begin(), a.end());
	
	const T& b = a;
	std::includes(b.begin(), b.end(), b.begin(), b.end());
}

CONSOLE_APP_MAIN
{
	Check< Vector<int> > ();
	Check< Array<int> > ();

	Check< BiVector<int> > ();
	Check< BiArray<int> > ();

	Check< Index<int> > ();
	Check< ArrayIndex<int> > ();
	Check< VectorMap<int, int> > ();
	Check< ArrayMap<int, int> > ();

	Check< InVector<int> > ();
	Check< InArray<int> > ();

	Check< SortedIndex<int> > ();
	Check< SortedVectorMap<int, int> > ();
	Check< SortedArrayMap<int, int> > ();
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: small dli enhancement
Next Topic: Is it possible to use Core/Rpc in non blocking mode?
Goto Forum:
  


Current Time: Sat May 18 04:12:59 CEST 2024

Total time taken to generate the page: 0.01964 seconds